summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-13 09:29:00 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-13 09:29:00 -0800
commitd12e3698e3e6a259f34ced2050e4343f54e130aa (patch)
treef0884c86809ee943456695e78677131b3cbb8d19 /modules
parentab37d89bba88de676123069e4f9072e3706c4dc0 (diff)
Call for_js() on all menu labels, since they're SafeStrings. Fixes ticket #879.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/controllers/admin_comments.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/controllers/admin_comments.php b/modules/comment/controllers/admin_comments.php
index a164f79f..2c278d64 100644
--- a/modules/comment/controllers/admin_comments.php
+++ b/modules/comment/controllers/admin_comments.php
@@ -33,10 +33,10 @@ class Admin_Comments_Controller extends Admin_Controller {
public function menu_labels() {
$menu = $this->_menu($this->_counts());
- print json_encode(array($menu->get("unpublished")->label,
- $menu->get("published")->label,
- $menu->get("spam")->label,
- $menu->get("deleted")->label));
+ print json_encode(array($menu->get("unpublished")->label->for_js(),
+ $menu->get("published")->label->for_js(),
+ $menu->get("spam")->label->for_js(),
+ $menu->get("deleted")->label->for_js()));
}
public function queue($state) {