mirror of
https://github.com/e107inc/e107.git
synced 2025-05-10 22:25:37 +02:00
Merge pull request #798 from Jimmi08/patch-9
Corrects news category issue #745
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user