1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-10 22:25:37 +02:00

Merge pull request from Jimmi08/patch-9

Corrects news category issue 
This commit is contained in:
Cameron 2014-12-05 13:13:44 -08:00
commit 24433752f7

@ -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)