summaryrefslogtreecommitdiff
path: root/lib/apiauth.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-09 17:11:40 -0700
committerZach Copley <zach@status.net>2009-10-09 17:11:40 -0700
commit559918826a714c1ee2ecdc49dcfc2b67451a9864 (patch)
treee65d7dd47e0e0a4d19e0774e09efa2f7818e2419 /lib/apiauth.php
parent931e19073d522a41a54b5e9a77b213a10da95476 (diff)
Remove more redundant $formats
Diffstat (limited to 'lib/apiauth.php')
-rw-r--r--lib/apiauth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/apiauth.php b/lib/apiauth.php
index 9fc0e5712..25bbae24e 100644
--- a/lib/apiauth.php
+++ b/lib/apiauth.php
@@ -172,7 +172,7 @@ class ApiAuthAction extends ApiAction
header('HTTP/1.1 401 Unauthorized');
$msg = 'Could not authenticate you.';
- if ($this->arg('format') == 'xml') {
+ if ($this->format == 'xml') {
header('Content-Type: application/xml; charset=utf-8');
$this->startXML();
$this->elementStart('hash');
@@ -180,7 +180,7 @@ class ApiAuthAction extends ApiAction
$this->element('request', null, $_SERVER['REQUEST_URI']);
$this->elementEnd('hash');
$this->endXML();
- } elseif ($this->arg('format') == 'json') {
+ } elseif ($this->format == 'json') {
header('Content-Type: application/json; charset=utf-8');
$error_array = array('error' => $msg,
'request' => $_SERVER['REQUEST_URI']);