X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapigrouplistall.php;h=6d7000e6b85f841e1be72bb5d8686863a4daf9f2;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=d05baa0992d928fdc35e5cb3b58d205d90a408da;hpb=0b1f48ebd0fcfed50d2110b7731196e9adcc04a6;p=quix0rs-gnu-social.git diff --git a/actions/apigrouplistall.php b/actions/apigrouplistall.php index d05baa0992..6d7000e6b8 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,7 +77,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args); @@ -89,7 +87,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction $taguribase = TagURI::base(); $id = "tag:$taguribase:Groups"; $link = common_local_url('groups'); - // TRANS: Message is used as a subtitle when listing the lastest 20 groups. %s is a site name. + // TRANS: Message is used as a subtitle when listing the latest 20 groups. %s is a site name. $subtitle = sprintf(_("groups on %s"), $sitename); switch($this->format) { @@ -116,7 +114,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction break; default: $this->clientError( - // TRANS: Client error displayed trying to execute an unknown API method listing the latest 20 groups. + // TRANS: Client error displayed when coming across a non-supported API method. _('API method not found.'), 404, $this->format @@ -161,7 +159,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction * * @return boolean true */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }