X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapigrouplistall.php;h=90f8eed8fa90e1de07a469001647fd5ff2d9c1df;hb=a75b1df62727ce74fdf4d8d98421558b153458e1;hp=51c3df1b2f7e128cc8ee7d2f8bfe647f16288c7a;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/actions/apigrouplistall.php b/actions/apigrouplistall.php index 51c3df1b2f..90f8eed8fa 100644 --- a/actions/apigrouplistall.php +++ b/actions/apigrouplistall.php @@ -35,8 +35,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiprivateauth.php'; - /** * Returns of the lastest 20 groups for the site * @@ -60,7 +58,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); @@ -79,9 +77,9 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction * * @return void */ - function handle($args) + function handle() { - parent::handle($args); + parent::handle(); $sitename = common_config('site', 'name'); // TRANS: Message is used as a title when listing the lastest 20 groups. %s is a site name.