From: Andrew Dolgov Date: Mon, 6 May 2013 08:50:52 +0000 (+0400) Subject: remove support for hiding empty categories in prefs editor because people are dumb X-Git-Tag: 1.7.9~25^2~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e5e6cde06a79551c42a7821722d33683e0a6829f;p=tt-rss.git remove support for hiding empty categories in prefs editor because people are dumb --- diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index ab280a98..da3a9628 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -36,8 +36,7 @@ class Pref_Feeds extends Handler_Protected { // first one is set by API $show_empty_cats = $_REQUEST['force_show_empty'] || - ($_REQUEST['mode'] != 2 && !$search && - get_pref('_PREFS_SHOW_EMPTY_CATS')); + ($_REQUEST['mode'] != 2 && !$search); $items = array(); @@ -185,8 +184,7 @@ class Pref_Feeds extends Handler_Protected { if ($enable_cats) { $show_empty_cats = $_REQUEST['force_show_empty'] || - ($_REQUEST['mode'] != 2 && !$search && - get_pref('_PREFS_SHOW_EMPTY_CATS')); + ($_REQUEST['mode'] != 2 && !$search); $result = $this->dbh->query("SELECT id, title FROM ttrss_feed_categories WHERE owner_uid = " . $_SESSION["uid"] . " AND parent_cat IS NULL ORDER BY order_id, title"); @@ -305,11 +303,6 @@ class Pref_Feeds extends Handler_Protected { return; } - function togglehiddenfeedcats() { - set_pref('_PREFS_SHOW_EMPTY_CATS', - (get_pref('_PREFS_SHOW_EMPTY_CATS') ? 'false' : 'true')); - } - private function process_category_order(&$data_map, $item_id, $parent_id = false, $nest_level = 0) { $debug = isset($_REQUEST["debug"]); @@ -1351,9 +1344,6 @@ class Pref_Feeds extends Handler_Protected { print $error_button; print $inactive_button; - print ""; - if (defined('_ENABLE_FEED_DEBUGGING')) { print "