]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
redirect if you're already logged in.
authorEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 14:13:54 +0000 (10:13 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 14:13:54 +0000 (10:13 -0400)
plugins/EmailRegistration/emailregister.php

index 22e8d59424f6f716be832fdb5c5109a9fcea4f29..02b78ba936a4fb10cee04f5e03e1a366244acfb3 100644 (file)
@@ -164,6 +164,13 @@ class EmailregisterAction extends Action
 
     function handle($argarray=null)
     {
+        $cur = common_current_user();
+
+        if (!empty($cur)) {
+            common_redirect(common_local_url('all', array('nickname' => $cur->nickname)));
+            return;
+        }
+
         switch ($this->state) {
         case self::NEWREGISTER:
             $this->showRegistrationForm();