Exemplo n.º 1
0
 /**
  * @param mixed		$category	Fake category (or null).
  * @param bool 		$xhtml		True if URL needs to be escaped for XHTML.
  * @param int|null	$action		Limitstart.
  *
  * @return string
  */
 public function getUrl($category = null, $xhtml = true, $action = null)
 {
     $category = $category ? KunenaForumCategoryHelper::get($category) : $this;
     if (!$category->exists()) {
         return '';
     }
     return KunenaRoute::getCategoryUrl($category, $xhtml);
 }