www

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

commit d850b290aab2d290701f2a44e66688912ca46b9f
parent 5ddd33c1b7516f387e6419c98cb13706258f1b41
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 28 Jan 2011 22:19:00 +0000

fix automatic import based on MIME type


Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1087,11 +1087,7 @@ Zotero.Translate.Import.prototype._loadTranslator = function(translator) { err = e; } } else { - if(this.location) { - if(!Zotero.Translate.IO.Read) { - throw "Translate: reading from files is not supported in this build of Zotero. Use setString() to perform import."; - } - + if(Zotero.Translate.IO.Read && this.location && this.location instanceof Components.interfaces.nsIFile) { try { this._io = new Zotero.Translate.IO.Read(this.location, dataMode); } catch(e) {