From b64729bfbe9f76bbbcdfa288f8fb1b696c6d8895 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Sun, 15 Nov 2009 19:46:12 -0800 Subject: Fix ticket 890 (related to 879): Don't double-escape menu labels on the comment admin screen. --- modules/comment/controllers/admin_comments.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/comment/controllers/admin_comments.php') diff --git a/modules/comment/controllers/admin_comments.php b/modules/comment/controllers/admin_comments.php index 2c278d64..13532c4e 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->for_js(), - $menu->get("published")->label->for_js(), - $menu->get("spam")->label->for_js(), - $menu->get("deleted")->label->for_js())); + print json_encode(array((string) $menu->get("unpublished")->label, + (string) $menu->get("published")->label, + (string) $menu->get("spam")->label, + (string) $menu->get("deleted")->label)); } public function queue($state) { -- cgit v1.2.3