]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/groupbyid.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / actions / groupbyid.php
index f18e4540c05ac84b2d6db5a9c5d81e253eb43486..befd526de11a6472e432ab1a7153d4866e65d7e2 100644 (file)
@@ -57,12 +57,12 @@ class GroupbyidAction extends Action
      *
      * @return boolean true
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }
 
-    function prepare($args)
+    function prepare(array $args=array())
     {
         parent::prepare($args);
 
@@ -71,17 +71,15 @@ class GroupbyidAction extends Action
         if (!$id) {
             // TRANS: Client error displayed referring to a group's permalink without providing a group ID.
             $this->clientError(_('No ID.'));
-            return false;
         }
 
         common_debug("Got ID $id");
 
-        $this->group = User_group::staticGet('id', $id);
+        $this->group = User_group::getKV('id', $id);
 
         if (!$this->group) {
             // TRANS: Client error displayed referring to a group's permalink for a non-existing group ID.
             $this->clientError(_('No such group.'), 404);
-            return false;
         }
 
         return true;
@@ -95,7 +93,7 @@ class GroupbyidAction extends Action
      *
      * @return void
      */
-    function handle($args)
+    function handle(array $args=array())
     {
         common_redirect($this->group->homeUrl(), 303);
     }