commit bfbea6474eb188c37b95639b8705ea74023e358e
parent 6a994a25a299b3ef32b5b3f4b5abf352036cbb53
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 20 Aug 2006 01:40:39 +0000
Fixes #196, Error: Scholar.File.getMIMETypeFromFile is not a function (line 1957) when adding new files
My bad
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js
@@ -1954,7 +1954,7 @@ Scholar.Attachments = new function(){
newFile.initWithFile(destDir);
newFile.append(title);
- var mimeType = Scholar.File.getMIMETypeFromFile(newFile);
+ var mimeType = Scholar.MIME.getMIMETypeFromFile(newFile);
var charsetID = _getCharsetIDFromFile(newFile);
_addToDB(newFile, null, null, this.LINK_MODE_IMPORTED_FILE,
@@ -1982,7 +1982,7 @@ Scholar.Attachments = new function(){
function linkFromFile(file, sourceItemID){
var title = file.leafName;
- var mimeType = Scholar.File.getMIMETypeFromFile(file);
+ var mimeType = Scholar.MIME.getMIMETypeFromFile(file);
var charsetID = _getCharsetIDFromFile(file);
return _addToDB(file, null, title, this.LINK_MODE_LINKED_FILE, mimeType, charsetID, sourceItemID);
}