X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitrends.php;h=a39769a34e60024fb1744d2ecc2cba109d2bf678;hb=b3bf036975593db27c6e7e653f18160d086f7b2d;hp=5b74636c697c4460ba893403c498972f7f6dda64;hpb=9eb5a976b03fae6bd1e1fce6abfe4a6c7964d1ae;p=quix0rs-gnu-social.git diff --git a/actions/apitrends.php b/actions/apitrends.php index 5b74636c69..a39769a34e 100644 --- a/actions/apitrends.php +++ b/actions/apitrends.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/apiprivateauth.php'; - /** * Returns the top ten queries that are currently trending * @@ -44,10 +42,8 @@ require_once INSTALLDIR.'/lib/apiprivateauth.php'; * * @see ApiAction */ - class ApiTrendsAction extends ApiPrivateAuthAction { - var $callback; /** @@ -70,7 +66,6 @@ class ApiTrendsAction extends ApiPrivateAuthAction * * @return void */ - function handle($args) { parent::handle($args); @@ -84,7 +79,7 @@ class ApiTrendsAction extends ApiPrivateAuthAction */ function showTrends() { + // TRANS: Server error for unfinished API method showTrends. $this->serverError(_('API method under construction.'), 501); } - -} \ No newline at end of file +}