From 57937c42b99d94a4046986bbfb59fdf8d765408a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 24 Dec 2009 15:25:06 +0300 Subject: obsolete cookie storage for collapsed status of feedlist and special categories (bump schema) --- functions.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 26e57ab4a..d7ef40cf6 100644 --- a/functions.php +++ b/functions.php @@ -3080,6 +3080,9 @@ print ""; + print ""; + print ""; } @@ -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); -- cgit v1.2.3