/** * @param mixed $category * @param bool $xhtml * @param null|string $action * * @return string */ public function getUrl($category = null, $xhtml = true, $action = null) { return KunenaRoute::getTopicUrl($this, $xhtml, $action, $category ? KunenaForumCategoryHelper::get($category) : $this->getCategory()); }