diff --git a/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php b/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php index 80801b682..cc3608641 100644 --- a/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php +++ b/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php @@ -60,5 +60,7 @@ class RegisterSmartyPluginPass implements CompilerPassInterface { )); }*/ } + + $smarty->addMethodCall("registerPlugins"); } } \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/SmartyParser.php b/core/lib/Thelia/Core/Template/SmartyParser.php index 16de30d4d..d0dcab7d0 100644 --- a/core/lib/Thelia/Core/Template/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/SmartyParser.php @@ -235,8 +235,6 @@ class SmartyParser extends Smarty implements ParserInterface { */ public function getContent() { - $this->registerPlugins(); - return $this->fetch($this->getTemplateFilePath()); }