From: Andrew Dolgov Date: Wed, 27 Mar 2013 06:27:04 +0000 (+0400) Subject: add label_base_index to init params X-Git-Tag: 1.7.6~258 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=88a41b64a26c4814004a849a328f9af7770430fa;p=tt-rss.git add label_base_index to init params --- diff --git a/include/functions.php b/include/functions.php index e926c034..66e9c137 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 fcf82a8e..e93ca54e 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); } }