summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-18 16:29:25 +0100
committerAndrew Dolgov <[email protected]>2009-01-18 16:29:25 +0100
commit1c9c602534e9a0aab5426d91f96b07ff31deabc6 (patch)
tree58585cb9aa722d57b266c59666672e2ef98ba8e9 /modules
parent9bf3f101cc47b8c521b44217e5763e85b79898db (diff)
remove label: do not reload headlines
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 3ec7df9e1..a6ab9340a 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -431,14 +431,33 @@
$label = label_find_caption($link, $label_id, $_SESSION["uid"]);
+ print "<rpc-reply>";
+ print "<info-for-headlines>";
+
if ($label) {
foreach ($ids as $id) {
label_remove_article($link, $id, $label, $_SESSION["uid"]);
+
+ print "<entry id=\"$id\"><![CDATA[";
+
+ $labels = get_article_labels($link, $id, $_SESSION["uid"]);
+
+ foreach ($labels as $l) {
+ print "<span class='hlLabelRef'>".$l[1]."</span>";
+ }
+
+ print "]]></entry>";
+
}
}
- print "<rpc-reply>OK</rpc-reply>";
+ print "</info-for-headlines>";
+
+ print "<counters>";
+ getAllCounters($link, $omode);
+ print "</counters>";
+ print "</rpc-reply>";
return;
}