Update deprecated uses of Zotero.getZoteroDirectory()/getZoteroDatabase()

The Zotero.DataDirectory equivalents return string paths instead of nsIFile
instances, so some of these calls now just use Zotero.File.pathToFile(), which
can be removed when the surrounding code is updated to OS.File,
This commit is contained in:
Dan Stillman 2016-11-27 00:06:02 -05:00
parent 4c0abb6816
commit 5a6f1eef63
16 changed files with 88 additions and 101 deletions

View file

@ -22,7 +22,7 @@ describe("Zotero.Sync.Data.Local", function() {
describe("#checkUser()", function () {
var resetDataDirFile = OS.Path.join(Zotero.getZoteroDirectory().path, 'reset-data-directory');
var resetDataDirFile = OS.Path.join(Zotero.DataDirectory.dir, 'reset-data-directory');
before(function() {
sinon.stub(Zotero.Utilities.Internal, 'quitZotero');