From e8f0cb197577bbbf681ace861ee06c5f6b1b69b7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Nov 2010 10:16:12 +0300 Subject: [PATCH] prefs: remove _PREFS_ACTIVE_TAB handling --- modules/pref-feeds.php | 2 -- modules/pref-filters.php | 2 -- modules/pref-labels.php | 2 -- modules/pref-prefs.php | 2 -- modules/pref-users.php | 2 -- 5 files changed, 10 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index bee4b126..8d354a66 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1164,8 +1164,6 @@ print "
"; print "
"; - set_pref($link, "_PREFS_ACTIVE_TAB", "feedConfig"); - $result = db_query($link, "SELECT COUNT(id) AS num_errors FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]); diff --git a/modules/pref-filters.php b/modules/pref-filters.php index ac6f4e68..12bfd439 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -363,8 +363,6 @@ if ($quiet) return; - set_pref($link, "_PREFS_ACTIVE_TAB", "filterConfig"); - $sort = db_escape_string($_REQUEST["sort"]); if (!$sort || $sort == "undefined") { diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 386b9c6a..ea1835f8 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -242,8 +242,6 @@ return; } - set_pref($link, "_PREFS_ACTIVE_TAB", "labelConfig"); - $sort = db_escape_string($_REQUEST["sort"]); if (!$sort || $sort == "undefined") { diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index d8a1cb13..bd27d0d4 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -158,8 +158,6 @@ } else { - set_pref($link, "_PREFS_ACTIVE_TAB", "genConfig"); - if ($_SESSION["profile"]) { print_notice("Some preferences are only available in default profile."); } diff --git a/modules/pref-users.php b/modules/pref-users.php index 9c903907..b75d5b76 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -352,8 +352,6 @@ print "
"; - set_pref($link, "_PREFS_ACTIVE_TAB", "userConfig"); - $user_search = db_escape_string($_REQUEST["search"]); if (array_key_exists("search", $_REQUEST)) { -- 2.39.5