X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FLegacyModule.php;h=22d393ef9eda1e5706360e209efc74dc264cfcc6;hb=7ec4d42461f6fb8397e55df27a83c889c31c7f6d;hp=d307d84ac82995cd296f929e8707d496abcd2dbf;hpb=e9b3a9426aec2259f19ae3d7adb2f18dcfc7b5e1;p=friendica.git diff --git a/src/LegacyModule.php b/src/LegacyModule.php index d307d84ac8..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,7 +93,7 @@ class LegacyModule extends BaseModule if (\function_exists($function_name)) { $a = DI::app(); - return $function_name($a); + return $function_name($a) ?? ''; } return '';