commit 1979efd8ce3c44a0cc3b5f834399edca0141c37c
parent 1ecd934d042d4bb2ad0abed64f0aad60f0cb0a4d
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 31 May 2015 19:08:35 -0400
Fix Zotero.Fulltext.getTotalPagesFromFile() call
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js
@@ -606,7 +606,7 @@ Zotero.Fulltext = new function(){
try {
proc.runw(true, args, args.length);
- var totalPages = this.getTotalPagesFromFile(itemID);
+ var totalPages = getTotalPagesFromFile(itemID);
}
catch (e) {
Components.utils.reportError(e);
@@ -1296,11 +1296,12 @@ Zotero.Fulltext = new function(){
/**
* Gets the number of pages from the PDF info cache file
*
+ * @private
* @return {Promise}
*/
var getTotalPagesFromFile = Zotero.Promise.coroutine(function* (itemID) {
var file = Zotero.Attachments.getStorageDirectoryByID(itemID);
- file.append(this.pdfInfoCacheFile);
+ file.append(Zotero.Fulltext.pdfInfoCacheFile);
if (!file.exists()) {
return false;
}