summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-27 10:27:04 +0400
committerAndrew Dolgov <[email protected]>2013-03-27 10:27:04 +0400
commit88a41b64a26c4814004a849a328f9af7770430fa (patch)
tree4ffc771e6edc262a7b08632591e152162313b44f
parentf822a8e56c747a168e69c73d8519d8b08b3ae809 (diff)
add label_base_index to init params
-rw-r--r--include/functions.php1
-rw-r--r--js/functions.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index e926c0341..66e9c1376 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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"]);
diff --git a/js/functions.js b/js/functions.js
index fcf82a8ea..e93ca54e0 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -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);
}
}