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-labels.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/pref-labels.php') diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 72e6dd1e3..f9f2c19e3 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -1,9 +1,9 @@ "; print ""; - print ""; + print ""; print "
".__("Caption")."
"; @@ -83,7 +83,7 @@ return; } - if ($subop == "getlabeltree") { + if ($method == "getlabeltree") { $root = array(); $root['id'] = 'root'; $root['name'] = __('Labels'); @@ -116,7 +116,7 @@ return; } - if ($subop == "color-set") { + if ($method == "color-set") { $kind = db_escape_string($_REQUEST["kind"]); $ids = split(',', db_escape_string($_REQUEST["ids"])); $color = db_escape_string($_REQUEST["color"]); @@ -147,7 +147,7 @@ return; } - if ($subop == "color-reset") { + if ($method == "color-reset") { $ids = split(',', db_escape_string($_REQUEST["ids"])); foreach ($ids as $id) { @@ -165,7 +165,7 @@ } - if ($subop == "save") { + if ($method == "save") { $id = db_escape_string($_REQUEST["id"]); $caption = db_escape_string(trim($_REQUEST["caption"])); @@ -210,7 +210,7 @@ return; } - if ($subop == "remove") { + if ($method == "remove") { $ids = split(",", db_escape_string($_REQUEST["ids"])); @@ -220,7 +220,7 @@ } - if ($subop == "add") { + if ($method == "add") { $caption = db_escape_string($_REQUEST["caption"]); $output = db_escape_string($_REQUEST["output"]); @@ -293,7 +293,7 @@ __("Loading, please wait...").""; print "
+ url=\"backend.php?op=pref-labels&method=getlabeltree\">