git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 2ed46ce2 authored by Evan Prodromou's avatar Evan Prodromou

move XRDS code from public action to OpenIDPlugin

parent 628a9371
......@@ -101,8 +101,6 @@ class PublicAction extends Action
{
parent::handle($args);
header('X-XRDS-Location: '. common_local_url('publicxrds'));
$this->showPage();
}
......@@ -143,22 +141,6 @@ class PublicAction extends Action
_('Public Stream Feed (Atom)')));
}
/**
* Extra head elements
*
* We include a <meta> element linking to the publicxrds page, for OpenID
* client-side authentication.
*
* @return void
*/
function extraHead()
{
// for client side of OpenID authentication
$this->element('meta', array('http-equiv' => 'X-XRDS-Location',
'content' => common_local_url('publicxrds')));
}
/**
* Show tabset for this page
*
......
......@@ -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')));
}
}
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