/** * Allows the given item to be displayed again. * * @param int $id the item id */ public function unstar($id) { $item = model_cache::get("item", $id); $msg = t("Un-starred <b>%title</b> item", array("title" => html::purify($item->title))); $this->_check_star_permissions($item); star::unstar($item); message::success($msg); json::reply(array("result" => "success", "reload" => 1)); }