]> git.wh0rd.org Git - tt-rss.git/commitdiff
offline: disable categories in feedlist when not enabled in tt-rss main
authorAndrew Dolgov <fox@bah.org.ru>
Fri, 6 Feb 2009 06:36:46 +0000 (09:36 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Fri, 6 Feb 2009 06:36:46 +0000 (09:36 +0300)
functions.php
offline.js

index ec814a355e0924badc0d226200fa693eea3eb921..7d3bae49c71a25c84817ef22ad376cd6e996a410 100644 (file)
                print "<param key=\"hide_read_feeds\" value=\"" . 
                        (int) get_pref($link, "HIDE_READ_FEEDS") . "\"/>";
 
+               print "<param key=\"enable_feed_cats\" value=\"" . 
+                       (int) get_pref($link, "ENABLE_FEED_CATS") . "\"/>";
+
                print "<param key=\"feeds_sort_by_unread\" value=\"" . 
                        (int) get_pref($link, "FEEDS_SORT_BY_UNREAD") . "\"/>";
 
index 3bcf695db422057a04363a61daea8afd3984822f..5d92e08d47a6105a60e939dbd9beb3fb8f6b2a98 100644 (file)
@@ -412,7 +412,7 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
 
 function render_offline_feedlist() {
        try {
-               var cats_enabled = 1;
+               var cats_enabled = getInitParam("enable_feed_cats") == "1";
 
                var tmp = "<ul class=\"feedList\" id=\"feedList\">";