git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 7a742a05 authored by Evan Prodromou's avatar Evan Prodromou

show OpenID action in login nav

parent 93239adb
......@@ -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));
}
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment