]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiaccountratelimitstatus.php
use common_purify to purify HTML, one function to rule them all
[quix0rs-gnu-social.git] / actions / apiaccountratelimitstatus.php
index 8d7f89eadccd4168c3fec52dd004a835b0a78a9e..0883425513fa2f4584fdc59dffede0cd0cbabf17 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.
@@ -66,6 +64,7 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction
 
         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