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