Fix updating translators and styles from unpacked build

This commit is contained in:
Simon Kornblith 2013-08-28 22:05:58 -04:00
parent 5a6e8cb65b
commit a5bc68bc17

View file

@ -510,6 +510,17 @@ Zotero.Schema = new function(){
xpiZipReader = Components.classes["@mozilla.org/libjar/zip-reader;1"]
.createInstance(Components.interfaces.nsIZipReader);
xpiZipReader.open(installLocation);
if(Zotero.isStandalone && !xpiZipReader.hasEntry("translators.index")) {
// Symlinked Standalone build
var installLocation2 = installLocation.parent;
installLocation2.append("translators");
if(installLocation2.exists()) {
installLocation = installLocation2;
isUnpacked = true;
xpiZipReader.close();
}
}
}
switch (mode) {