X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitrends.php;h=996ad663013c18cf1665cee72948d92764fb1b09;hb=457d32e2739ef41f23c088e4715663940365df39;hp=3e854b1096cea7dc7c384f2513940268bec55d16;hpb=e7c7fd39fc948f1169512916077185dd29973b60;p=quix0rs-gnu-social.git diff --git a/actions/apitrends.php b/actions/apitrends.php index 3e854b1096..996ad66301 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 * @@ -55,7 +53,7 @@ class ApiTrendsAction extends ApiPrivateAuthAction * * @return boolean false if user doesn't exist */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); return true; @@ -68,9 +66,9 @@ class ApiTrendsAction extends ApiPrivateAuthAction * * @return void */ - function handle($args) + function handle() { - parent::handle($args); + parent::handle(); $this->showTrends(); }