1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

correct news category

Closes #745
This commit is contained in:
Jimako
2014-10-26 16:28:38 +01:00
parent 14a403d0de
commit cffed0538e

View File

@@ -212,7 +212,8 @@ class news_shortcodes extends e_shortcode
function sc_newscategory($parm)
{
$category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs');
return "<a class='".$GLOBALS['NEWS_CSSMODE']."_category' style='".(isset($this->param['catlink']) ? $this->param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $this->news_item)."'>".$category_name."</a>";
$category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] );
return "<a class='".$GLOBALS['NEWS_CSSMODE']."_category' style='".(isset($this->param['catlink']) ? $this->param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name."</a>";
}
function sc_newsdate($parm)