X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapiaccountratelimitstatus.php;h=167a2dd6f55b9c7b0957f169ac27b24aeedfb8a1;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=8490e2965c87bad502750611157a916c68426184;hpb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;p=quix0rs-gnu-social.git diff --git a/actions/apiaccountratelimitstatus.php b/actions/apiaccountratelimitstatus.php index 8490e2965c..167a2dd6f5 100644 --- a/actions/apiaccountratelimitstatus.php +++ b/actions/apiaccountratelimitstatus.php @@ -31,11 +31,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} - -require_once INSTALLDIR . '/lib/apibareauth.php'; +if (!defined('GNUSOCIAL')) { exit(1); } /** * We don't have a rate limit, but some clients check this method. @@ -60,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( @@ -71,7 +67,6 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction 404, $this->format ); - return; } $reset = new DateTime(); @@ -117,7 +112,7 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }