1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fixes #2821 - News Category URL.

This commit is contained in:
Cameron
2017-10-17 09:55:00 -07:00
parent 3eeb6807f2
commit 4794990be3

View File

@@ -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);
}