diff options
author | Andrew Dolgov <[email protected]> | 2009-12-24 15:25:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-24 15:25:06 +0300 |
commit | 57937c42b99d94a4046986bbfb59fdf8d765408a (patch) | |
tree | 7e2ea1b319101915806c36ea76b84c4022bceed3 /functions.php | |
parent | 44258fa967a8804a80d84ebd845a8668c18ca890 (diff) |
obsolete cookie storage for collapsed status of feedlist and special categories (bump schema)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/functions.php b/functions.php index 26e57ab4a..d7ef40cf6 100644 --- a/functions.php +++ b/functions.php @@ -3080,6 +3080,9 @@ print "<param key=\"num_feeds\" value=\"". (int)$num_feeds. "\"/>"; + print "<param key=\"collapsed_feedlist\" value=\"" . + (int) get_pref($link, "_COLLAPSED_FEEDLIST") . "\"/>"; + print "</init-params>"; } @@ -4162,11 +4165,7 @@ if (get_pref($link, 'ENABLE_FEED_CATS')) { - if ($_COOKIE["ttrss_vf_vclps"] == 1) { - $cat_hidden = true; - } else { - $cat_hidden = false; - } + $cat_hidden = get_pref($link, "_COLLAPSED_SPECIAL"); printCategoryHeader($link, -1, $cat_hidden, false); } @@ -4225,11 +4224,7 @@ if (db_num_rows($result) > 0) { if (get_pref($link, 'ENABLE_FEED_CATS')) { - if ($_COOKIE["ttrss_vf_lclps"] == 1) { - $cat_hidden = true; - } else { - $cat_hidden = false; - } + $cat_hidden = get_pref($link, "_COLLAPSED_LABELS"); printCategoryHeader($link, -2, $cat_hidden, true); @@ -4381,9 +4376,7 @@ // workaround for NULL category if ($category == __("Uncategorized")) { - if ($_COOKIE["ttrss_vf_uclps"] == 1) { - $collapsed = "t"; - } + $collapsed = get_pref($link, "_COLLAPSED_UNCAT"); } $cat_id = sprintf("%d", $cat_id); |