X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fapi.php;h=21fe4eea32004868e9a795422fcddb77ceaeaf73;hb=28ef2ccf427683837dde29f8b89ea8d5378f287b;hp=dfe2c8857b67ff4d8a94d9de1a299856d525c32d;hpb=0aa2cb35f19fa52160331e9a3846fc9a37a8bc98;p=quix0rs-gnu-social.git diff --git a/actions/api.php b/actions/api.php index dfe2c8857b..21fe4eea32 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']);