show OpenID action in login nav

This commit is contained in:
Evan Prodromou 2009-08-04 07:20:17 -04:00
parent 93239adb55
commit 7a742a0572
2 changed files with 12 additions and 5 deletions

View 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));
}

View 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;
}
}