]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix WSOD with EmailRegistration plugin's confirmation form
authorZach Copley <zach@status.net>
Wed, 4 May 2011 23:12:49 +0000 (16:12 -0700)
committerZach Copley <zach@status.net>
Wed, 4 May 2011 23:12:49 +0000 (16:12 -0700)
plugins/EmailRegistration/emailregister.php

index 2d32b40456e891225878696012e76330e51645a3..062b054ad74ecd5a4cb686139efc40bc95715864 100644 (file)
@@ -252,7 +252,6 @@ class EmailregisterAction extends Action
             if (!$this->tos) {
                 // TRANS: Error text when trying to register without agreeing to the terms.
                 $this->error = _m('You must accept the terms of service and privacy policy to register.');
-                return;
             } else if (empty($this->password1)) {
                 // TRANS: Error text when trying to register without a password.
                 $this->error = _m('You must set a password');
@@ -266,7 +265,7 @@ class EmailregisterAction extends Action
 
             if (!empty($this->error)) {
                 $nickname = $this->nicknameFromEmail($email);
-                $this->form = new ConfirmRegistrationForm($this, $nickname, $this->email, $this->code);
+                $this->form = new ConfirmRegistrationForm($this, $nickname, $email, $this->code);
                 $this->showPage();
                 return;
             }
@@ -281,7 +280,7 @@ class EmailregisterAction extends Action
             } catch (ClientException $e) {
                 $this->error = $e->getMessage();
                 $nickname = $this->nicknameFromEmail($email);
-                $this->form = new ConfirmRegistrationForm($this, $nickname, $this->email, $this->code);
+                $this->form = new ConfirmRegistrationForm($this, $nickname, $email, $this->code);
                 $this->showPage();
                 return;
             }