]> git.wh0rd.org - tt-rss.git/commitdiff
implement blacklist for disabled prefs options
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 20 Feb 2008 12:23:51 +0000 (13:23 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 20 Feb 2008 12:23:51 +0000 (13:23 +0100)
modules/pref-prefs.php

index 6c19343090a175b74215b01c1acadbfbd0ced742..e3e4cb4d53688640e0c0bb2826b3463324670a68 100644 (file)
@@ -10,6 +10,9 @@
        function module_pref_prefs($link) {
                $subop = $_REQUEST["subop"];
 
+               $prefs_blacklist = array();
+               //$prefs_blacklist = array("HIDE_FEEDLIST");
+
                if ($subop == "change-password") {
 
                        $old_pw = $_POST["OLD_PASSWORD"];
        
                        while ($line = db_fetch_assoc($result)) {
 
+                               if (in_array($line["pref_name"], $prefs_blacklist)) {
+                                       continue;
+                               }
+
                                if ($active_section != $line["section_name"]) {
 
                                        if ($active_section != "") {