X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitrends.php;h=6e6810b95d2ffad61f2cefcd0c02afa8d673d1d3;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=3e854b1096cea7dc7c384f2513940268bec55d16;hpb=e7c7fd39fc948f1169512916077185dd29973b60;p=quix0rs-gnu-social.git diff --git a/actions/apitrends.php b/actions/apitrends.php index 3e854b1096..6e6810b95d 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,7 +66,7 @@ class ApiTrendsAction extends ApiPrivateAuthAction * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args); $this->showTrends();