]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Another function not matching parent declaration
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 7 Jun 2015 07:26:12 +0000 (09:26 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 7 Jun 2015 07:26:12 +0000 (09:26 +0200)
actions/apiaccountratelimitstatus.php

index 0883425513fa2f4584fdc59dffede0cd0cbabf17..592cf908fcf49d71dcfe896411361862b8180fe8 100644 (file)
@@ -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();