]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiaccountratelimitstatus.php
Improved type-hint for following methods:
[quix0rs-gnu-social.git] / actions / apiaccountratelimitstatus.php
index 8d7f89eadccd4168c3fec52dd004a835b0a78a9e..ee3fdd86ace529c77c3d205df99ec9614ccfaa8e 100644 (file)
@@ -35,8 +35,6 @@ if (!defined('STATUSNET')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/apibareauth.php';
-
 /**
  * We don't have a rate limit, but some clients check this method.
  * It always returns the same thing: 150 hits left.
@@ -60,12 +58,13 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction
      *
      * @return void
      */
-    function handle($args)
+    function handle(array $args=array())
     {
         parent::handle($args);
 
         if (!in_array($this->format, array('xml', 'json'))) {
             $this->clientError(
+                // TRANS: Client error displayed when coming across a non-supported API method.
                 _('API method not found.'),
                 404,
                 $this->format
@@ -116,7 +115,7 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction
      *
      * @return boolean is read only action?
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }