mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
implement blacklist for disabled prefs options
This commit is contained in:
@@ -10,6 +10,9 @@
|
|||||||
function module_pref_prefs($link) {
|
function module_pref_prefs($link) {
|
||||||
$subop = $_REQUEST["subop"];
|
$subop = $_REQUEST["subop"];
|
||||||
|
|
||||||
|
$prefs_blacklist = array();
|
||||||
|
//$prefs_blacklist = array("HIDE_FEEDLIST");
|
||||||
|
|
||||||
if ($subop == "change-password") {
|
if ($subop == "change-password") {
|
||||||
|
|
||||||
$old_pw = $_POST["OLD_PASSWORD"];
|
$old_pw = $_POST["OLD_PASSWORD"];
|
||||||
@@ -329,6 +332,10 @@
|
|||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
|
||||||
|
if (in_array($line["pref_name"], $prefs_blacklist)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($active_section != $line["section_name"]) {
|
if ($active_section != $line["section_name"]) {
|
||||||
|
|
||||||
if ($active_section != "") {
|
if ($active_section != "") {
|
||||||
|
|||||||
Reference in New Issue
Block a user