1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:35:55 +00:00

move runtime-info to JSON, simplify init-params format

This commit is contained in:
Andrew Dolgov
2010-11-10 14:23:26 +03:00
parent bd40aca6c0
commit c4f7ba8018
3 changed files with 46 additions and 78 deletions

View File

@@ -2151,14 +2151,12 @@ function backend_sanity_check_callback(transport) {
params = JSON.parse(params.firstChild.nodeValue);
if (params) {
for (var i = 0; i < params.length; i++) {
for (k in params) {
var k = params[i].param;
var v = params[i].value;
if (getURLParam('debug')) console.log(k + " => " + v);
init_params[k] = v;
var v = params[k];
console.log("IP: " + k + " => " + v);
if (db) {
db.execute("DELETE FROM init_params WHERE key = ?", [k]);
db.execute("INSERT INTO init_params (key,value) VALUES (?, ?)",
@@ -2166,6 +2164,8 @@ function backend_sanity_check_callback(transport) {
}
}
}
init_params = params;
}
sanity_check_done = true;