pref-labels: remove unused code

This commit is contained in:
Andrew Dolgov 2021-02-16 14:19:06 +03:00
parent 3887665bcb
commit cb6b3584ce
1 changed files with 0 additions and 14 deletions

View File

@ -167,28 +167,14 @@ 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() {
?> ?>
<div dojoType='dijit.layout.BorderContainer' gutters='false'> <div dojoType='dijit.layout.BorderContainer' gutters='false'>