From 892478be2ed11494f83723dafdaf5146910bfa47 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Aug 2006 22:44:45 +0000 Subject: [PATCH] Fixed bug that was breaking Scholar.Files.getFile() --- chrome/chromeFiles/content/scholar/xpcom/data_access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index 4f40e0736f..076b5cac9d 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -1079,7 +1079,7 @@ Scholar.Item.prototype.getFile = function(){ var file = Components.classes["@mozilla.org/file/local;1"]. createInstance(Components.interfaces.nsILocalFile); - var refDir = (linkMode==this.LINK_MODE_LINKED_FILE) + var refDir = (row['linkMode']==this.LINK_MODE_LINKED_FILE) ? Scholar.getScholarDirectory() : Scholar.getStorageDirectory(); file.setRelativeDescriptor(refDir, row['path']);