From cffed0538ed5bd3e038816569c5902c15e141dd4 Mon Sep 17 00:00:00 2001 From: Jimako Date: Sun, 26 Oct 2014 16:28:38 +0100 Subject: [PATCH] correct news category Closes #745 --- e107_core/shortcodes/batch/news_shortcodes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index a532b817e..8db0a8fd1 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -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 "param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $this->news_item)."'>".$category_name.""; + $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] ); + return "param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name.""; } function sc_newsdate($parm)