add label_base_index to init params

remotes/origin/jsonfeed-test-branch
Andrew Dolgov 10 years ago
parent f822a8e56c
commit 88a41b64a2
  1. 1
      include/functions.php
  2. 2
      js/functions.js

@ -1856,6 +1856,7 @@
$params["default_view_limit"] = (int) get_pref($link, "_DEFAULT_VIEW_LIMIT");
$params["default_view_order_by"] = get_pref($link, "_DEFAULT_VIEW_ORDER_BY");
$params["bw_limit"] = (int) $_SESSION["bw_limit"];
$params["label_base_index"] = (int) LABEL_BASE_INDEX;
$result = db_query($link, "SELECT MAX(id) AS mid, COUNT(*) AS nf FROM
ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"]);

@ -1339,6 +1339,8 @@ function backend_sanity_check_callback(transport) {
for (k in params) {
var v = params[k];
console.log("IP: " + k + " => " + v);
if (k == "label_base_index") _label_base_index = parseInt(v);
}
}

Loading…
Cancel
Save