summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <git@evanprodromou.name>2009-01-23 10:37:27 +0100
committerEvan Prodromou <git@evanprodromou.name>2009-01-23 10:37:27 +0100
commit11cb85820d81adb0e663b5fe8432e0deb1f0a3cc (patch)
treedd45cdb8ad2a442a28545e30629d9ce8d6c0d3fc /actions
parente566b8929b20903426a9ea24dc03b2a5c4bc68c1 (diff)
parent0ef33663ce0b3739e8e9eb3b9951dee5059c6b3b (diff)
Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk
Diffstat (limited to 'actions')
-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']);