From 4fc62a8bf51ebd18314212e0cda45eac8db26b54 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 7 Jun 2015 09:26:12 +0200 Subject: [PATCH] Another function not matching parent declaration --- actions/apiaccountratelimitstatus.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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();