1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 09:10:23 +02:00

FontAwesome version update. News shortcode wrapper issue corrected.

This commit is contained in:
Cameron
2016-03-10 15:13:32 -08:00
parent 4516bc910e
commit 1b2db4683e
6 changed files with 12 additions and 3 deletions

View File

@@ -373,11 +373,15 @@ class news {
// Retrieve batch sc object, set required vars
$wrapperKey = (!empty($param['template_key'])) ? 'news/'.$param['template_key'].'/item' : 'news/view/item';
$sc = e107::getScBatch('news')
->wrapper('news/view/item')
->wrapper($wrapperKey)
->setScVar('news_item', $news)
->setScVar('param', $param);
$text = e107::getParser()->parseTemplate($NEWS_PARSE, true, $sc);
if ($mode == 'return')