summaryrefslogtreecommitdiff
path: root/actions/api.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-23 01:19:19 -0800
committerZach Copley <zach@controlyourself.ca>2009-01-23 01:19:19 -0800
commitb13374faa568e4e77478b9ffe5c800758ffdc3f3 (patch)
tree0c9c01e1125c5e68ffc3ef7fff812a992e4b75b1 /actions/api.php
parent85321cede0abba7a5d08fad7fcb348d1bacc98b3 (diff)
Bring the Twitter compatible API inline with new uiredesign stuff
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 47c119605..8c4a24e58 100644
--- a/actions/api.php
+++ b/actions/api.php
@@ -158,12 +158,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']);