]> git.wh0rd.org Git - tt-rss.git/commitdiff
add label_base_index to init params
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 06:27:04 +0000 (10:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 06:27:04 +0000 (10:27 +0400)
include/functions.php
js/functions.js

index e926c03414637a2baa5431ab3c92b9e20e2849a1..66e9c1376a3f7c401c9be23a77906e67ce122799 100644 (file)
                $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"]);
index fcf82a8eacddca7fcb8794aa6b722c7f9c9ebdfb..e93ca54e09a7e2ef24f99155a0a80fc495105e8c 100644 (file)
@@ -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);
                                }
                        }