/** * @NoAdminRequired */ public function renameTag($old_name = "", $new_name = "") { if ($old_name == "" || $new_name == "") { return new JSONResponse(array(), Http::STATUS_BAD_REQUEST); } Bookmarks::renameTag($this->userId, $this->db, $old_name, $new_name); return new JSONResponse(array('status' => 'success')); }