From: Art4 Date: Sat, 23 Nov 2024 08:27:40 +0000 (+0000) Subject: Remove DI::app() call from LegacyModule X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f829ac1cd1998ad549e528e374dbbd513851f1c;p=friendica.git Remove DI::app() call from LegacyModule --- 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 '';