From a9f9d1570333af2a1c1aef4376ea9618ca18dcd2 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 29 Jul 2009 22:14:35 +0000 Subject: [PATCH] fix importing files --- chrome/content/zotero/xpcom/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index 48e01fd90f..b2f8392d76 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -2028,7 +2028,7 @@ Zotero.Translate.prototype._importConfigureIO = function(charset) { var IOService = Components.classes['@mozilla.org/network/io-service;1'] .getService(Components.interfaces.nsIIOService); if(this._storage) { - var baseURI = this.location ? this.location : null; + var baseURI = this.location ? this.location : ""; } else { var fileHandler = IOService.getProtocolHandler("file") .QueryInterface(Components.interfaces.nsIFileProtocolHandler); @@ -2040,7 +2040,7 @@ Zotero.Translate.prototype._importConfigureIO = function(charset) { Zotero.debug("Translate: loading data"); var parser = new Zotero.RDF.AJAW.RDFParser(this._rdf); - parser.parse(xmlNodes, ""); + parser.parse(xmlNodes, baseURI); } // add RDF features to sandbox