Fix "At least one of includeUserFiles or includeGroupFiles must be set in Zotero.Sync.Storage._getFilesToDownload()" error, except maybe for real this time

This commit is contained in:
Dan Stillman 2011-03-30 11:22:53 +00:00
parent 759f846610
commit 7eb1c9dd9f

View file

@ -847,29 +847,29 @@ Zotero.Sync.Storage = new function () {
this.purgeDeletedStorageFiles = function (module, callback) {
_session = new Zotero.Sync.Storage.Session(module, { onError: _error });
if (!_session.initFromPrefs()) {
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
if (!session.initFromPrefs()) {
return;
}
_session.purgeDeletedStorageFiles(callback);
session.purgeDeletedStorageFiles(callback);
}
this.purgeOrphanedStorageFiles = function (module, callback) {
_session = new Zotero.Sync.Storage.Session(module, { onError: _error });
if (!_session.initFromPrefs()) {
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
if (!session.initFromPrefs()) {
return;
}
_session.purgeOrphanedStorageFiles(callback);
session.purgeOrphanedStorageFiles(callback);
}
this.isActive = function (module) {
_session = new Zotero.Sync.Storage.Session(module, { onError: _error });
if (!_session.initFromPrefs()) {
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
if (!session.initFromPrefs()) {
return;
}
return _session.active;
return session.active;
}