offline: disable categories in feedlist when not enabled in tt-rss main

This commit is contained in:
Andrew Dolgov 2009-02-06 09:36:46 +03:00
parent ab95d6a545
commit 1c98068144
2 changed files with 4 additions and 1 deletions

View File

@ -2958,6 +2958,9 @@
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") . "\"/>";

View 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\">";