]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show OpenID action in login nav
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 4 Aug 2009 11:20:17 +0000 (07:20 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 4 Aug 2009 17:01:23 +0000 (13:01 -0400)
lib/logingroupnav.php
plugins/OpenID/OpenIDPlugin.php

index bae45b0770f514964bb100378a0163aad7f5002c..59f3133025a29310ac36924bc6cc18c962c42eaa 100644 (file)
@@ -87,11 +87,6 @@ class LoginGroupNav extends Widget
                                         $action_name === 'register');
             }
 
-            $this->action->menuItem(common_local_url('openidlogin'),
-                                    _('OpenID'),
-                                    _('Login or register with OpenID'),
-                                    $action_name === 'openidlogin');
-
             Event::handle('EndLoginGroupNav', array(&$this->action));
         }
 
index 149a92356df211807c6380767bd9831301c4d204..b70b1da190c156dad98107d7b5f3fff54d061178 100644 (file)
@@ -75,4 +75,16 @@ class OpenIDPlugin extends Plugin
 
         return true;
     }
+
+    function onEndLoginGroupNav(&$action)
+    {
+        $action_name = $action->trimmed('action');
+
+        $action->menuItem(common_local_url('openidlogin'),
+                          _('OpenID'),
+                          _('Login or register with OpenID'),
+                          $action_name === 'openidlogin');
+
+        return true;
+    }
 }
\ No newline at end of file