]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pref/labels.php
pref-labels: remove obsolete searching code
[tt-rss.git] / classes / pref / labels.php
index a928dd0171dc940130e74ec7e4796d5f034e280a..458e4f88b0a9b39c28b8b4cfb8f9180d3e0a151d 100644 (file)
@@ -250,20 +250,6 @@ class Pref_Labels extends Handler_Protected {
 
        function index() {
 
-               $sort = $this->dbh->escape_string($_REQUEST["sort"]);
-
-               if (!$sort || $sort == "undefined") {
-                       $sort = "caption";
-               }
-
-               $label_search = $this->dbh->escape_string($_REQUEST["search"]);
-
-               if (array_key_exists("search", $_REQUEST)) {
-                       $_SESSION["prefs_label_search"] = $label_search;
-               } else {
-                       $label_search = $_SESSION["prefs_label_search"];
-               }
-
                print "<div id=\"pref-label-wrap\" dojoType=\"dijit.layout.BorderContainer\" gutters=\"false\">";
                print "<div id=\"pref-label-header\" dojoType=\"dijit.layout.ContentPane\" region=\"top\">";
                print "<div id=\"pref-label-toolbar\" dojoType=\"dijit.Toolbar\">";
@@ -319,8 +305,7 @@ class Pref_Labels extends Handler_Protected {
 
                print "</div>"; #pane
 
-               global $pluginhost;
-               $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
+               PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB,
                        "hook_prefs_tab", "prefLabels");
 
                print "</div>"; #container