Replace calls for App::getThemeInfo() with AppHelper

pull/14542/head
Art4 2024-11-08 23:14:08 +00:00
parent 2ac926dfb2
commit 536234a9c6
1 changed files with 2 additions and 2 deletions

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;
}