correctly output public XRDS <meta>

This commit is contained in:
Evan Prodromou 2009-10-28 14:38:19 -04:00
parent 6c615f6801
commit e25716d180

View File

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