mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Merge pull request #798 from Jimmi08/patch-9
Corrects news category issue #745
This commit is contained in:
@@ -212,7 +212,8 @@ class news_shortcodes extends e_shortcode
|
|||||||
function sc_newscategory($parm)
|
function sc_newscategory($parm)
|
||||||
{
|
{
|
||||||
$category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs');
|
$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)
|
function sc_newsdate($parm)
|
||||||
|
Reference in New Issue
Block a user