diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 6ce58875d7..2d8b4dc755 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -530,8 +530,8 @@ Zotero.Schema = new function(){ continue; } - // Delete incorrectly named files saved via repo pre-1.5b3 switch (file.leafName) { + // Delete incorrectly named files saved via repo pre-1.5b3 case 'ama': case 'apa': case 'apsa': @@ -548,8 +548,21 @@ Zotero.Schema = new function(){ case 'nature': case 'nlm': case 'vancouver': + + // Delete renamed/obsolete files + case 'chicago-note.csl': + case 'mhra_note_without_bibliography.csl': toDelete.push(file); continue; + + // Be a little more careful with this one, in case someone + // created a custom 'aaa' style + case 'aaa.csl': + var str = Zotero.File.getContents(file, false, 300); + if (str.indexOf("