From 4794990be313e6a8e3bcba3b43bcfdced2bfc66f Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 17 Oct 2017 09:55:00 -0700 Subject: [PATCH] Fixes #2821 - News Category URL. --- e107_core/shortcodes/batch/news_shortcodes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index d9197726d..67d2896fc 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -280,6 +280,12 @@ class news_shortcodes extends e_shortcode } } + function sc_news_category_url($parm=null) + { + $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] ); + + return e107::getUrl()->create('news/list/category', $category); + }