Fix ticket 890 (related to 879): Don't double-escape menu labels on the comment admin screen.

This commit is contained in:
Andy Staudacher
2009-11-15 19:46:12 -08:00
parent 0733dc37fd
commit b64729bfbe

View File

@@ -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) {