diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index aaebd4dab..df9e0fa6b 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -239,6 +239,13 @@ class news_shortcodes extends e_shortcode } + + function sc_news_category_id($parm=null) + { + return (int) $this->news_item['category_id']; + } + + function sc_news_category_icon($parm=null) { return $this->sc_newscaticon($parm); @@ -274,6 +281,8 @@ class news_shortcodes extends e_shortcode } + + //New v2.x Aliases public function sc_news_id($parm=null)