X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModule%2FRegister.php;h=ad49555e699d77bd4aa06b24b085c977756e9a9a;hb=fd706cf9a7a0c4700838a1f00b12d8fd37323b7c;hp=0837b5706edf8099d8201acbdbd37e260e11910c;hpb=1377d13055e6aeea37811e925455bdb17f98777e;p=friendica.git diff --git a/src/Module/Register.php b/src/Module/Register.php index 0837b5706e..ad49555e69 100644 --- a/src/Module/Register.php +++ b/src/Module/Register.php @@ -35,7 +35,7 @@ class Register extends BaseModule * * @return string */ - public static function content() + public static function content(array $parameters = []) { // logged in users can register others (people/pages/groups) // even with closed registrations, unless specifically prohibited by site policy. @@ -152,7 +152,7 @@ class Register extends BaseModule * Extend this method if the module is supposed to process POST requests. * Doesn't display any content */ - public static function post() + public static function post(array $parameters = []) { BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register'); @@ -262,7 +262,7 @@ class Register extends BaseModule $a->internalRedirect('register/'); } // Is there text in the tar pit? - if (!empty($_POST('registertarpit'))) { + if (!empty($_POST['registertarpit'])) { \notice(L10n::t('You have entered too much information.')); $a->internalRedirect('register/'); }