1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-01 02:21:58 +02:00

Issue #4124 - Avoid legacy globals with v2.x theme templates.

This commit is contained in:
Cameron
2020-04-20 11:49:19 -07:00
parent 6b9b2f7013
commit ab925f43cc
2 changed files with 3 additions and 4 deletions

View File

@@ -1197,12 +1197,11 @@ class news_front
$caption = null;
$render = false;
if(!empty($NEWSSTYLE))
if(deftrue('THEME_LEGACY') && !empty($NEWSSTYLE))
{
$template = $NEWSSTYLE;
}
elseif(function_exists("news_style")) // BC
elseif(deftrue('THEME_LEGACY') && function_exists("news_style")) // BC
{
$template = news_style($news, 'extend', $param);
}