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) --- mobile/classic/functions.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'mobile/classic/functions.php') diff --git a/mobile/classic/functions.php b/mobile/classic/functions.php index 88b25ab25..823af122f 100644 --- a/mobile/classic/functions.php +++ b/mobile/classic/functions.php @@ -30,11 +30,8 @@ /* virtual feeds */ if (get_pref($link, 'ENABLE_FEED_CATS')) { - if ($_COOKIE["ttrss_vf_vclps"] == 1) { - $collapsed = true; - } else { - $collapsed = false; - } + + $collapsed = get_pref($link, "_COLLAPSED_SPECIAL"); if ($collapsed == "t" || $collapsed == "1") { $holder_class = "invisible"; @@ -100,11 +97,7 @@ if (db_num_rows($result) > 0) { if (get_pref($link, 'ENABLE_FEED_CATS')) { - if ($_COOKIE["ttrss_vf_lclps"] == 1) { - $collapsed = true; - } else { - $collapsed = false; - } + $collapsed = get_pref($link, "_COLLAPSED_LABELS"); if ($collapsed == "t" || $collapsed == "1") { $holder_class = "invisible"; @@ -250,9 +243,7 @@ // workaround for NULL category if ($category == "Uncategorized") { - if ($_COOKIE["ttrss_vf_uclps"] == 1) { - $collapsed = "t"; - } + $collapsed = get_pref($link, "_COLLAPSED_UNCAT"); } if ($collapsed == "t" || $collapsed == "1") { -- cgit v1.2.3