From 536234a9c645ab22efbd1ab799d24b66ef836ea3 Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 8 Nov 2024 23:14:08 +0000 Subject: [PATCH] Replace calls for App::getThemeInfo() with AppHelper --- src/Core/Renderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Renderer.php b/src/Core/Renderer.php index ed8d3041be..6ddd8d4ad1 100644 --- a/src/Core/Renderer.php +++ b/src/Core/Renderer.php @@ -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; }