www

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

commit 86941ba9fcb2a2c3c7ec137db10d3dca040d709f
parent c5b703da823cc87fdf31942b23e52bbb9f0394a9
Author: Simon Kornblith <simon@simonster.com>
Date:   Sat, 25 Sep 2010 16:09:55 +0000

don't use appendRelativePath to fix Windows issues


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

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -576,9 +576,11 @@ var Zotero = new function(){ // parse out ini to reveal profile if(!defaultSection || !defaultSection.Path) return false; + + if(defaultSection.IsRelative) { var defaultProfile = prefDir.clone(); - defaultProfile.QueryInterface(Components.interfaces.nsILocalFile).appendRelativePath(defaultSection.Path); + [defaultProfile.append(dir) for each(dir in defaultSection.Path.split("/"))]; } else { var defaultProfile = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); @@ -2732,4 +2734,4 @@ Zotero.JSON = new function() { this.unserialize = function(arg) { return nativeJSON.decode(arg); } -} -\ No newline at end of file +}