From: Andrew Dolgov Date: Mon, 21 Nov 2005 20:05:29 +0000 (+0100) Subject: fix prefs apply behaviour for demo mode X-Git-Tag: schema_feature_freeze_for_1.1~142 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d28920327486b8ae3347492f4b18002cc0dc455a;p=tt-rss.git fix prefs apply behaviour for demo mode --- diff --git a/backend.php b/backend.php index 9fe421ff..1dcfd4de 100644 --- a/backend.php +++ b/backend.php @@ -1685,7 +1685,10 @@ if ($subop == "Save configuration") { - if (WEB_DEMO_MODE) return; + if (WEB_DEMO_MODE) { + header("Location: prefs.php"); + return; + } $_SESSION["prefs_op_result"] = "save-config"; @@ -1741,7 +1744,10 @@ } else if ($subop == "Change password") { - if (WEB_DEMO_MODE) return; + if (WEB_DEMO_MODE) { + header("Location: prefs.php"); + return; + } $old_pw = $_POST["OLD_PASSWORD"]; $new_pw = $_POST["OLD_PASSWORD"]; @@ -1773,7 +1779,10 @@ } else if ($subop == "Reset to defaults") { - if (WEB_DEMO_MODE) return; + if (WEB_DEMO_MODE) { + header("Location: prefs.php"); + return; + } $_SESSION["prefs_op_result"] = "reset-to-defaults";