www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 7eb1c9dd9f6f312ec9fddef39b8ecffc7a550f29
parent 759f846610122b2ee42cc62954c536beb22a69a0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 30 Mar 2011 11:22:53 +0000

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


Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -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; }