]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apigroupadmins.php
Type-hint is array here.
[quix0rs-gnu-social.git] / actions / apigroupadmins.php
index 3ddff154809ac2ac0456f4e1e6e4261c1ce02d94..3754a831d4efe587c8d3f2a7a1557e807166c0ce 100644 (file)
@@ -20,7 +20,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  * @category  API
- * @package   GNUSocial
+ * @package   GNUsocial
  * @author    Craig Andrews <candrews@integralblue.com>
  * @author    Evan Prodromou <evan@status.net>
  * @author    Jeffery To <jeffery.to@gmail.com>
@@ -40,7 +40,7 @@ if (!defined('GNUSOCIAL')) {
  * List 20 newest admins of the group specified by name or ID.
  *
  * @category API
- * @package  GNUSocial
+ * @package  GNUsocial
  * @author   Craig Andrews <candrews@integralblue.com>
  * @author   Evan Prodromou <evan@status.net>
  * @author   Jeffery To <jeffery.to@gmail.com>
@@ -61,15 +61,14 @@ class ApiGroupAdminsAction extends ApiPrivateAuthAction
      *
      * @return boolean success flag
      */
-    function prepare($args)
+    protected function prepare(array $args=array())
     {
         parent::prepare($args);
 
         $this->group    = $this->getTargetGroup($this->arg('id'));
         if (empty($this->group)) {
             // TRANS: Client error displayed trying to show group membership on a non-existing group.
-            $this->clientError(_('Group not found.'), 404, $this->format);
-            return false;
+            $this->clientError(_('Group not found.'), 404);
         }
 
         $this->profiles = $this->getProfiles();
@@ -86,9 +85,9 @@ class ApiGroupAdminsAction extends ApiPrivateAuthAction
      *
      * @return void
      */
-    function handle($args)
+    protected function handle()
     {
-        parent::handle($args);
+        parent::handle();
 
         // XXX: RSS and Atom
 
@@ -140,7 +139,7 @@ class ApiGroupAdminsAction extends ApiPrivateAuthAction
      *
      * @return boolean true
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }