Skip to content
Snippets Groups Projects
Commit cb6b3584 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

pref-labels: remove unused code

parent 3887665b
No related branches found
No related tags found
No related merge requests found
...@@ -167,26 +167,12 @@ class Pref_Labels extends Handler_Protected { ...@@ -167,26 +167,12 @@ class Pref_Labels extends Handler_Protected {
$output = clean($_REQUEST["output"]); $output = clean($_REQUEST["output"]);
if ($caption) { if ($caption) {
if (Labels::create($caption)) { if (Labels::create($caption)) {
if (!$output) { if (!$output) {
print T_sprintf("Created label <b>%s</b>", htmlspecialchars($caption)); print T_sprintf("Created label <b>%s</b>", htmlspecialchars($caption));
} }
} }
if ($output == "select") {
header("Content-Type: text/xml");
print "<rpc-reply><payload>";
print_label_select("select_label",
$caption, "");
print "</payload></rpc-reply>";
}
} }
return;
} }
function index() { function index() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment