1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 20:55:56 +00:00

restore init params from DB in offline mode

This commit is contained in:
Andrew Dolgov
2009-02-04 14:15:58 +03:00
parent 80b1c23867
commit 3034277ab5
3 changed files with 40 additions and 15 deletions

View File

@@ -170,6 +170,13 @@ function backend_sanity_check_callback(transport) {
var v = param.getAttribute("value");
debug(k + " => " + v);
init_params[k] = v;
if (db) {
db.execute("DELETE FROM init_params WHERE key = ?", [k]);
db.execute("INSERT INTO init_params (key,value) VALUES (?, ?)",
[k, v]);
}
param = param.nextSibling;
}
}