Look for deleted.txt in extension root first (for XPI builds) and translators directory second (for SVN builds)
This commit is contained in:
parent
ab43605070
commit
5e22c3fc58
1 changed files with 7 additions and 1 deletions
|
@ -506,8 +506,14 @@ Zotero.Schema = new function(){
|
|||
var lastVersion = Zotero.DB.valueQuery(sql);
|
||||
|
||||
var deleted = extDir.clone();
|
||||
deleted.append('translators');
|
||||
deleted.append('deleted.txt');
|
||||
// In SVN builds, deleted.txt is in the translators directory
|
||||
if (!deleted.exists()) {
|
||||
deleted = extDir.clone();
|
||||
deleted.append('translators');
|
||||
deleted.append('deleted.txt');
|
||||
}
|
||||
|
||||
deleted = Zotero.File.getContents(deleted);
|
||||
deleted = deleted.match(/^([^\s]+)/gm);
|
||||
var version = deleted.shift();
|
||||
|
|
Loading…
Reference in a new issue