1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +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

@@ -61,7 +61,7 @@ class comment
global $COMMENTSTYLE;
if (!$COMMENTSTYLE)
if (empty($COMMENTSTYLE) || !deftrue('THEME_LEGACY')) // v2.x
{
require(e107::coreTemplatePath('comment')); // using require_once() could cause an empty template if the template is already loaded, for example, by the comment-menu al
}