Merge pull request #104 from mmn/proper_plugin_load_status

Use getActivePlugins() list to see if OpenID is active
This commit is contained in:
Hannes Mannerheim 2015-02-08 22:58:30 +01:00
commit 14e3e7f69e

View File

@ -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";