]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix prefs apply behaviour for demo mode
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 21 Nov 2005 20:05:29 +0000 (21:05 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 21 Nov 2005 20:05:29 +0000 (21:05 +0100)
backend.php

index 9fe421ffbca029b7a1dc7d3059e6340b86795683..1dcfd4deb485b38053390e595db966a57d631c9b 100644 (file)
 
                if ($subop == "Save configuration") {
 
-                       if (WEB_DEMO_MODE) return;
+                       if (WEB_DEMO_MODE) {
+                               header("Location: prefs.php");
+                               return;
+                       }
 
                        $_SESSION["prefs_op_result"] = "save-config";
 
 
                } 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"];
 
                } 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";