Merge pull request #104 from mmn/proper_plugin_load_status
Use getActivePlugins() list to see if OpenID is active
This commit is contained in:
commit
14e3e7f69e
|
@ -132,7 +132,7 @@ class QvitterAction extends ApiAction
|
||||||
print ' <link href="'.$instanceurl.$nickname.'/microsummary" rel="microsummary">'."\n";
|
print ' <link href="'.$instanceurl.$nickname.'/microsummary" rel="microsummary">'."\n";
|
||||||
|
|
||||||
// maybe openid
|
// maybe openid
|
||||||
if(!common_config('plugins','disable-OpenID')) {
|
if (array_key_exists('OpenID', StatusNet::getActivePlugins())) {
|
||||||
print ' <link rel="openid2.provider" href="'.common_local_url('openidserver').'"/>'."\n";
|
print ' <link rel="openid2.provider" href="'.common_local_url('openidserver').'"/>'."\n";
|
||||||
print ' <link rel="openid2.local_id" href="'.$user->getProfile()->profileurl.'"/>'."\n";
|
print ' <link rel="openid2.local_id" href="'.$user->getProfile()->profileurl.'"/>'."\n";
|
||||||
print ' <link rel="openid2.server" href="'.common_local_url('openidserver').'"/>'."\n";
|
print ' <link rel="openid2.server" href="'.common_local_url('openidserver').'"/>'."\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user