From bfbea6474eb188c37b95639b8705ea74023e358e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 20 Aug 2006 01:40:39 +0000 Subject: [PATCH] Fixes #196, Error: Scholar.File.getMIMETypeFromFile is not a function (line 1957) when adding new files My bad --- chrome/chromeFiles/content/scholar/xpcom/data_access.js | 4 ++-- 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 index 37fe2e83f7..c895e2b766 100644 --- 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); }