summaryrefslogtreecommitdiff
path: root/actions/api.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-23 09:47:09 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-23 09:47:09 +0000
commitd06a929d703e0ad776230234b3d821a83f22d492 (patch)
tree5e6620006312021a3a5551e2735f5a758bd57066 /actions/api.php
parentef3f47b8f5e8da1d4ae15fc3946332a346e63e0b (diff)
parent11cb85820d81adb0e663b5fe8432e0deb1f0a3cc (diff)
Merge branch 'master' of /var/www/trunk
Diffstat (limited to 'actions/api.php')
-rw-r--r--actions/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/api.php b/actions/api.php
index dfe2c8857..21fe4eea3 100644
--- a/actions/api.php
+++ b/actions/api.php
@@ -162,12 +162,12 @@ class ApiAction extends Action
if ($this->content_type == 'xml') {
header('Content-Type: application/xml; charset=utf-8');
- common_start_xml();
+ $this->startXML();
$this->elementStart('hash');
$this->element('error', null, $msg);
$this->element('request', null, $_SERVER['REQUEST_URI']);
$this->elementEnd('hash');
- common_end_xml();
+ $this->endXML();
} else if ($this->content_type == 'json') {
header('Content-Type: application/json; charset=utf-8');
$error_array = array('error' => $msg, 'request' => $_SERVER['REQUEST_URI']);