X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FLegacyModule.php;h=22d393ef9eda1e5706360e209efc74dc264cfcc6;hb=7ec4d42461f6fb8397e55df27a83c889c31c7f6d;hp=77b35ba92c21803fcf14fa26a43593b29db74ccb;hpb=ce578a77453fd421e9598c994ef008ad7e128de6;p=friendica.git diff --git a/src/LegacyModule.php b/src/LegacyModule.php index 77b35ba92c..22d393ef9e 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -1,6 +1,6 @@ setModuleFile($file_path); @@ -65,13 +68,15 @@ class LegacyModule extends BaseModule require_once $file_path; } - public function content(): string + protected function content(array $request = []): string { return $this->runModuleFunction('content'); } - public function post() + protected function post(array $request = []) { + parent::post($request); + $this->runModuleFunction('post'); } @@ -88,9 +93,9 @@ class LegacyModule extends BaseModule if (\function_exists($function_name)) { $a = DI::app(); - return $function_name($a); - } else { - return parent::{$function_suffix}(); + return $function_name($a) ?? ''; } + + return ''; } }