1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Fix for {NEWS_CATEGORY_NAME} etc. used in news ['start'] template.

This commit is contained in:
Cameron
2017-02-12 09:09:11 -08:00
parent 84a4cc36e5
commit f24886faae

View File

@@ -712,7 +712,15 @@ class e_news_tree extends e_front_tree_model
if(!empty($items)) if(!empty($items))
{ {
$start = $parser->parseTemplate($template['start'], true, $vars); // must be here in case {SETIMAGE} is present and used for items below.
foreach ($items as $news)
{
$d = $news->toArray();
$batch->setScVar('news_item',$d); // set news category.
break;
}
$start = $parser->parseTemplate($template['start'], true,$batch,$vars); // must be here in case {SETIMAGE} is present and used for items below.
} }