diff options
author | Evan Prodromou <git@evanprodromou.name> | 2009-01-23 10:37:27 +0100 |
---|---|---|
committer | Evan Prodromou <git@evanprodromou.name> | 2009-01-23 10:37:27 +0100 |
commit | 11cb85820d81adb0e663b5fe8432e0deb1f0a3cc (patch) | |
tree | dd45cdb8ad2a442a28545e30629d9ce8d6c0d3fc /actions | |
parent | e566b8929b20903426a9ea24dc03b2a5c4bc68c1 (diff) | |
parent | 0ef33663ce0b3739e8e9eb3b9951dee5059c6b3b (diff) |
Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk
Diffstat (limited to 'actions')
-rw-r--r-- | actions/api.php | 4 |
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']); |