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