Remove DI::app() call from LegacyModule

This commit is contained in:
Art4 2024-11-23 08:27:40 +00:00
parent 76d25a27b4
commit 5f829ac1cd

View file

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