Fix for updated translators not taking effect until restart

This commit is contained in:
Dan Stillman 2007-09-18 18:50:06 +00:00
parent d40d1bd075
commit fa698c1622

View File

@ -582,6 +582,11 @@ Zotero.Schema = new function(){
for (var i=0, len=styleUpdates.length; i<len; i++){ for (var i=0, len=styleUpdates.length; i<len; i++){
_styleXMLToDB(styleUpdates[i]); _styleXMLToDB(styleUpdates[i]);
} }
// Rebuild the translator cache
Zotero.debug("Clearing translator cache");
Zotero.Translate.cache = null;
Zotero.Translate.init();
} }
catch (e) { catch (e) {
Zotero.debug(e, 1); Zotero.debug(e, 1);