mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Remove DI::app() call from LegacyModule
This commit is contained in:
parent
76d25a27b4
commit
5f829ac1cd
1 changed files with 1 additions and 2 deletions
|
@ -78,8 +78,7 @@ class LegacyModule extends BaseModule
|
||||||
$function_name = $this->moduleName . '_' . $function_suffix;
|
$function_name = $this->moduleName . '_' . $function_suffix;
|
||||||
|
|
||||||
if (\function_exists($function_name)) {
|
if (\function_exists($function_name)) {
|
||||||
$a = DI::app();
|
return $function_name() ?? '';
|
||||||
return $function_name($a) ?? '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in a new issue