www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 93411a3daca2c2247838dabdfbc66afe825a45c4
parent 74c679e6d24781b6700c2072957568e3a051d09f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 20 Aug 2013 16:52:53 -0400

Fix incorrect variables

Diffstat:
Mchrome/content/zotero/xpcom/translation/translators.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translators.js b/chrome/content/zotero/xpcom/translation/translators.js @@ -74,7 +74,7 @@ Zotero.Translators = new function() { filesInCache[leafName] = true; } else { // otherwise, load from file - var translator = yield Zotero.Translators.loadFromFile(file); + var translator = yield Zotero.Translators.loadFromDisk(file); } if(translator.translatorID) { @@ -152,7 +152,7 @@ Zotero.Translators = new function() { */ this.loadFromDisk = function(file) { const infoRe = /^\s*{[\S\s]*?}\s*?[\r\n]/; - return Zotero.File.getContentsAsync(this.file).then(function(source) { + return Zotero.File.getContentsAsync(file).then(function(source) { return Zotero.Translators.load(file, infoRe.exec(source)[0], source); }).fail(function() { throw "Invalid or missing translator metadata JSON object in " + file.leafName;