1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 10:50:25 +02:00

Fixes #4382 - Init theme shortcodes later.

This commit is contained in:
Cameron
2021-02-14 08:14:57 -08:00
parent aee77a102f
commit a448c00a1d
2 changed files with 6 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ $e107 = e107::getInstance();
$sql = e107::getDb();
e107::getDebug()->logTime('(Header Top)');
if($themeSC = e107::getScBatch('theme')) // init theme_shortcodes after THEME_LAYOUT is available.
{
$themeSC->init();
unset($themeSC);
}
e107::getRender()->init();

View File

@@ -292,7 +292,7 @@ class e_parse_shortcode
{
$this->scClasses[$class] = new $class();
if(method_exists($this->scClasses[$class], 'init'))
if($class !== 'theme_shortcodes' && method_exists($this->scClasses[$class], 'init'))
{
$this->scClasses[$class]->init();
}