forked from GNUsocial/gnu-social
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
This commit is contained in:
commit
6cfa587385
@ -51,7 +51,7 @@ class PublicxrdsAction extends Action
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Is read only?
|
* Is read only?
|
||||||
*
|
*
|
||||||
* @return boolean true
|
* @return boolean true
|
||||||
*/
|
*/
|
||||||
function isReadOnly()
|
function isReadOnly()
|
||||||
@ -61,7 +61,7 @@ class PublicxrdsAction extends Action
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class handler.
|
* Class handler.
|
||||||
*
|
*
|
||||||
* @param array $args array of arguments
|
* @param array $args array of arguments
|
||||||
*
|
*
|
||||||
* @return nothing
|
* @return nothing
|
||||||
@ -70,24 +70,24 @@ class PublicxrdsAction extends Action
|
|||||||
{
|
{
|
||||||
parent::handle($args);
|
parent::handle($args);
|
||||||
header('Content-Type: application/xrds+xml');
|
header('Content-Type: application/xrds+xml');
|
||||||
common_start_xml();
|
$this->startXML();
|
||||||
$this->elementStart('XRDS', array('xmlns' => 'xri://$xrds'));
|
$this->elementStart('XRDS', array('xmlns' => 'xri://$xrds'));
|
||||||
$this->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
|
$this->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
|
||||||
'xmlns:simple' => 'http://xrds-simple.net/core/1.0',
|
'xmlns:simple' => 'http://xrds-simple.net/core/1.0',
|
||||||
'version' => '2.0'));
|
'version' => '2.0'));
|
||||||
$this->element('Type', null, 'xri://$xrds*simple');
|
$this->element('Type', null, 'xri://$xrds*simple');
|
||||||
foreach (array('finishopenidlogin', 'finishaddopenid', 'finishimmediate') as $finish) {
|
foreach (array('finishopenidlogin', 'finishaddopenid') as $finish) {
|
||||||
$this->showService(Auth_OpenID_RP_RETURN_TO_URL_TYPE,
|
$this->showService(Auth_OpenID_RP_RETURN_TO_URL_TYPE,
|
||||||
common_local_url($finish));
|
common_local_url($finish));
|
||||||
}
|
}
|
||||||
$this->elementEnd('XRD');
|
$this->elementEnd('XRD');
|
||||||
$this->elementEnd('XRDS');
|
$this->elementEnd('XRDS');
|
||||||
common_end_xml();
|
$this->endXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show service.
|
* Show service.
|
||||||
*
|
*
|
||||||
* @param string $type XRDS type
|
* @param string $type XRDS type
|
||||||
* @param string $uri URI
|
* @param string $uri URI
|
||||||
* @param array $params type parameters, null by default
|
* @param array $params type parameters, null by default
|
||||||
|
@ -86,4 +86,9 @@ class TagAction extends Action
|
|||||||
$this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
|
$this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
|
||||||
$this->page, 'tag', array('tag' => $this->tag));
|
$this->page, 'tag', array('tag' => $this->tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isReadOnly()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user