summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zcopley@mekong.(none)>2009-06-17 14:32:36 -0700
committerZach Copley <zcopley@mekong.(none)>2009-06-17 14:32:36 -0700
commit7e25a7f3aa2a308ddfc141e2e88fd52c042cb931 (patch)
tree5c6fd36ab0dbfcea777095a6a11407fc2d10bef3
parent2fbd141361b6ddab0e036b52fc23f2bfcdfd0075 (diff)
Output XML and JSON error msgs for API calls
-rw-r--r--lib/twitterapi.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/twitterapi.php b/lib/twitterapi.php
index 569bc6d7a..269b60efc 100644
--- a/lib/twitterapi.php
+++ b/lib/twitterapi.php
@@ -545,7 +545,7 @@ class TwitterapiAction extends Action
$this->init_twitter_atom();
break;
default:
- $this->client_error(_('Not a supported data format.'));
+ $this->clientError(_('Not a supported data format.'));
break;
}
@@ -573,13 +573,13 @@ class TwitterapiAction extends Action
$this->end_twitter_rss();
break;
default:
- $this->client_error(_('Not a supported data format.'));
+ $this->clientError(_('Not a supported data format.'));
break;
}
return;
}
- function client_error($msg, $code = 400, $content_type = 'json')
+ function clientError($msg, $code = 400, $content_type = 'json')
{
static $status = array(400 => 'Bad Request',
@@ -666,7 +666,7 @@ class TwitterapiAction extends Action
$this->show_json_objects($profile_array);
break;
default:
- $this->client_error(_('Not a supported data format.'));
+ $this->clientError(_('Not a supported data format.'));
return;
}
return;