X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftwitapiusers.php;h=ed2417561157241e8af434dc9b427f68ee68c7f5;hb=bc15d027a804e60e76bdaf6fd47e69d41b395e7e;hp=43f6969f4f52295fe517f0ac96fa393295d1389b;hpb=edbc0c665cc65875b4d14b79939233b1c9c06bb6;p=quix0rs-gnu-social.git diff --git a/actions/twitapiusers.php b/actions/twitapiusers.php index 43f6969f4f..ed24175611 100644 --- a/actions/twitapiusers.php +++ b/actions/twitapiusers.php @@ -21,13 +21,15 @@ if (!defined('LACONICA')) { exit(1); } require_once(INSTALLDIR.'/lib/twitterapi.php'); -class TwitapiusersAction extends TwitterapiAction { +class TwitapiusersAction extends TwitterapiAction +{ - function show($args, $apidata) { + function show($args, $apidata) + { parent::handle($args); if (!in_array($apidata['content-type'], array('xml', 'json'))) { - common_user_error(_('API method not found!'), $code = 404); + $this->clientError(_('API method not found!'), $code = 404); return; } @@ -42,7 +44,7 @@ class TwitapiusersAction extends TwitterapiAction { if (!$user) { // XXX: Twitter returns a random(?) user instead of throwing and err! -- Zach - $this->client_error(_('Not found.'), 404, $apidata['content-type']); + $this->clientError(_('Not found.'), 404, $apidata['content-type']); return; }