/** * Remove like for the submitted topic * * @param string $topic_id the topic to unlike */ function dislike_action($topic_id) { ForumPerm::check('like_entry', $this->getId(), $topic_id); ForumLike::dislike($topic_id); if (Request::isXhr()) { $this->topic_id = $topic_id; $this->render_template('index/_like'); } else { $this->redirect(PluginEngine::getLink('coreforum/index/index/' . $topic_id . '#' . $topic_id)); } }