X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapiaccountratelimitstatus.php;h=592cf908fcf49d71dcfe896411361862b8180fe8;hb=a597b2800122be618bbf620eb1e6ae61bf691d15;hp=0883425513fa2f4584fdc59dffede0cd0cbabf17;hpb=220b51d8be61e9bd316567f3ad03fffdbc4b7526;p=quix0rs-gnu-social.git diff --git a/actions/apiaccountratelimitstatus.php b/actions/apiaccountratelimitstatus.php index 0883425513..592cf908fc 100644 --- a/actions/apiaccountratelimitstatus.php +++ b/actions/apiaccountratelimitstatus.php @@ -31,9 +31,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * We don't have a rate limit, but some clients check this method. @@ -58,9 +56,9 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction * * @return void */ - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); if (!in_array($this->format, array('xml', 'json'))) { $this->clientError( @@ -69,7 +67,6 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction 404, $this->format ); - return; } $reset = new DateTime();