From 5f829ac1cd1998ad549e528e374dbbd513851f1c Mon Sep 17 00:00:00 2001 From: Art4 Date: Sat, 23 Nov 2024 08:27:40 +0000 Subject: [PATCH] Remove DI::app() call from LegacyModule --- src/LegacyModule.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LegacyModule.php b/src/LegacyModule.php index 8d12abd444..c4d70ee9f2 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -78,8 +78,7 @@ class LegacyModule extends BaseModule $function_name = $this->moduleName . '_' . $function_suffix; if (\function_exists($function_name)) { - $a = DI::app(); - return $function_name($a) ?? ''; + return $function_name() ?? ''; } return '';