summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-23 01:39:25 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-23 01:39:25 +0100
commit120ed87e72b26f6f60fe113338dbacfa27f6c019 (patch)
tree44339af99dda05a841d40226eac1a50ce076cd20 /actions
parent8228dc7ed5de29d762b755ded7c7901390313e76 (diff)
Fix start/stop xml in xrds
Diffstat (limited to 'actions')
-rw-r--r--actions/xrds.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/actions/xrds.php b/actions/xrds.php
index 629de3a86..075831803 100644
--- a/actions/xrds.php
+++ b/actions/xrds.php
@@ -49,17 +49,17 @@ class XrdsAction extends Action
{
/**
* Is read only?
- *
+ *
* @return boolean true
*/
function isReadOnly()
- {
+ {
return true;
}
/**
* Class handler.
- *
+ *
* @param array $args query arguments
*
* @return void
@@ -78,7 +78,7 @@ class XrdsAction extends Action
/**
* Show XRDS for a user.
- *
+ *
* @param class $user XRDS for this user.
*
* @return void
@@ -86,7 +86,7 @@ class XrdsAction extends Action
function showXrds($user)
{
header('Content-Type: application/xrds+xml');
- common_start_xml();
+ $this->startXML();
$this->elementStart('XRDS', array('xmlns' => 'xri://$xrds'));
$this->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
@@ -133,12 +133,12 @@ class XrdsAction extends Action
'#omb');
$this->elementEnd('XRD');
$this->elementEnd('XRDS');
- common_end_xml();
+ $this->endXML();
}
/**
* Show service.
- *
+ *
* @param string $type XRDS type
* @param string $uri URI
* @param array $params type parameters, null by default