From 93d3aea9056abbce997d01a9a44d51443214a4ed Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 13 Jan 2013 12:17:43 +0800 Subject: [PATCH] pass filename properly for zipped fb2 in CreDocument:init() --- frontend/document/credocument.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/document/credocument.lua b/frontend/document/credocument.lua index 799cfa5f5..2b5c05e53 100644 --- a/frontend/document/credocument.lua +++ b/frontend/document/credocument.lua @@ -139,7 +139,7 @@ function CreDocument:init() if file_type == "zip" then -- NuPogodi, 20.05.12: read the content of zip-file -- and return extention of the 1st file - file_type = self:zipContentExt(filename) + file_type = self:zipContentExt(self.file) end -- these two format use the same css file if file_type == "html" then