]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Register.php
Merge remote-tracking branch 'upstream/develop' into api4
[friendica.git] / src / Module / Register.php
index 909e61a998688f6e4118140ced1f3ffbd3cdcaa7..fca59a2c85f14e696080404fe46452001115e026 100644 (file)
@@ -53,7 +53,7 @@ class Register extends BaseModule
         *
         * @return string
         */
-       public static function content(array $parameters = [])
+       public function content(): string
        {
                // logged in users can register others (people/pages/groups)
                // even with closed registrations, unless specifically prohibited by site policy.
@@ -129,7 +129,7 @@ class Register extends BaseModule
 
                $tpl = $arr['template'];
 
-               $tos = new Tos();
+               $tos = new Tos($this->parameters);
 
                $o = Renderer::replaceMacros($tpl, [
                        '$invitations'  => DI::config()->get('system', 'invitation_only'),
@@ -182,7 +182,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(array $parameters = [])
+       public function post()
        {
                BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');