show OpenID action in login nav
This commit is contained in:
parent
93239adb55
commit
7a742a0572
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user