]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Register.php
Group selection: Respect "pubmail" and ignore atchived or blocked contacts
[friendica.git] / src / Module / Register.php
index 4071020e320b55db765ea5741e1dedaece48cbcf..ad49555e699d77bd4aa06b24b085c977756e9a9a 100644 (file)
@@ -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');
 
@@ -261,8 +261,8 @@ class Register extends BaseModule
 
                                $a->internalRedirect('register/');
                        }
-                       // Is there text in the tar pid?
-                       if (!empty($_POST('registeertarpid'))) {
+                       // Is there text in the tar pit?
+                       if (!empty($_POST['registertarpit'])) {
                                \notice(L10n::t('You have entered too much information.'));
                                $a->internalRedirect('register/');
                        }