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:
@@ -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.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user