Replace calls for App::getThemeInfo() with AppHelper

This commit is contained in:
Art4 2024-11-08 23:14:08 +00:00
parent 2ac926dfb2
commit 536234a9c6

View file

@ -155,9 +155,9 @@ class Renderer
if (isset(self::$template_engine_instance[$template_engine])) {
return self::$template_engine_instance[$template_engine];
} else {
$a = DI::app();
$appHelper = DI::apphelper();
$class = self::$template_engines[$template_engine];
$obj = new $class($a->getCurrentTheme(), $a->getThemeInfo());
$obj = new $class($appHelper->getCurrentTheme(), $appHelper->getThemeInfo());
self::$template_engine_instance[$template_engine] = $obj;
return $obj;
}