Commit e25716d1 authored by Evan Prodromou's avatar Evan Prodromou

correctly output public XRDS <meta>

parent 6c615f68
......@@ -150,11 +150,15 @@ class OpenIDPlugin extends Plugin
* @return void
*/
function onEndHeadChildren($action)
function onEndShowHeadElements($action)
{
// for client side of OpenID authentication
$action->element('meta', array('http-equiv' => 'X-XRDS-Location',
'content' => common_local_url('publicxrds')));
if ($action->trimmed('action') == 'public') {
// for client side of OpenID authentication
$action->element('meta', array('http-equiv' => 'X-XRDS-Location',
'content' => common_local_url('publicxrds')));
}
return true;
}
/**
......
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