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