commit a5bc68bc17a0cb994d03f3ce1ad966148ddd534f parent 5a6e8cb65bc947c5d62f967a74556e682d855129 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 28 Aug 2013 22:05:58 -0400 Fix updating translators and styles from unpacked build Diffstat:
| M | chrome/content/zotero/xpcom/schema.js | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -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) {