move XRDS code from public action to OpenIDPlugin

This commit is contained in:
Evan Prodromou
2009-08-04 13:04:31 -04:00
parent 628a937108
commit 2ed46ce274
2 changed files with 14 additions and 18 deletions

View File

@@ -142,4 +142,18 @@ class OpenIDPlugin extends Plugin
return true;
}
}
/**
* We include a <meta> element linking to the publicxrds page, for OpenID
* client-side authentication.
*
* @return void
*/
function onEndHeadChildren($action)
{
// for client side of OpenID authentication
$action->element('meta', array('http-equiv' => 'X-XRDS-Location',
'content' => common_local_url('publicxrds')));
}
}