From: Evan Prodromou Date: Tue, 4 Aug 2009 11:20:17 +0000 (-0400) Subject: show OpenID action in login nav X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a742a0572a3f0aa529785f4f7eab320a2dd099d;p=quix0rs-gnu-social.git show OpenID action in login nav --- diff --git a/lib/logingroupnav.php b/lib/logingroupnav.php index bae45b0770..59f3133025 100644 --- a/lib/logingroupnav.php +++ b/lib/logingroupnav.php @@ -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)); } diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 149a92356d..b70b1da190 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -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