From f30ef1fa1bd76b497b5c0a64a92e2e0ef7116515 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 12 Dec 2011 22:46:25 +0400 Subject: subop -> method --- modules/pref-prefs.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/pref-prefs.php') diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 838c722c3..15fa53490 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -3,7 +3,7 @@ global $access_level_names; - $subop = $_REQUEST["subop"]; + $method = $_REQUEST["method"]; $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD", "STRIP_UNSAFE_TAGS"); @@ -19,7 +19,7 @@ array_push($prefs_blacklist, "PURGE_UNREAD_ARTICLES"); } */ - if ($subop == "change-password") { + if ($method == "change-password") { $old_pw = $_POST["old_password"]; $new_pw = $_POST["new_password"]; @@ -68,7 +68,7 @@ return; - } else if ($subop == "save-config") { + } else if ($method == "save-config") { # $_SESSION["prefs_op_result"] = "save-config"; @@ -95,7 +95,7 @@ return; - } else if ($subop == "getHelp") { + } else if ($method == "getHelp") { $pref_name = db_escape_string($_REQUEST["pn"]); @@ -109,7 +109,7 @@ printf(__("Unknown option: %s"), $pref_name); } - } else if ($subop == "change-email") { + } else if ($method == "change-email") { $email = db_escape_string($_POST["email"]); $full_name = db_escape_string($_POST["full_name"]); @@ -123,7 +123,7 @@ return; - } else if ($subop == "reset-config") { + } else if ($method == "reset-config") { $_SESSION["prefs_op_result"] = "reset-to-defaults"; @@ -194,7 +194,7 @@ print ""; print ""; - print ""; + print ""; print "

"; @@ -252,7 +252,7 @@ print ""; print ""; - print ""; + print ""; print "

"; @@ -488,7 +488,7 @@ print '

'; print ""; - print ""; + print ""; print " "; -- cgit v1.2.3