commit a9f9d1570333af2a1c1aef4376ea9618ca18dcd2
parent c93dda90fdb5eadbdce5cd5942aaa821e40635a8
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 29 Jul 2009 22:14:35 +0000
fix importing files
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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