X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffoafgroup.php;h=a9cf5d9dc0964e7fe01049c82030a3829ef85609;hb=c04c91bb8974671ee093f444b3d180993bc4987c;hp=9638ea0f34938c4675d9c50faa2560cdf7852d8c;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/actions/foafgroup.php b/actions/foafgroup.php index 9638ea0f34..a9cf5d9dc0 100644 --- a/actions/foafgroup.php +++ b/actions/foafgroup.php @@ -30,12 +30,12 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } // @todo XXX: Documentation missing. class FoafGroupAction extends Action { - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; } - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -44,7 +44,6 @@ class FoafGroupAction extends Action if (empty($nickname_arg)) { // TRANS: Client error displayed when requesting Friends of a Friend feed without providing a group nickname. $this->clientError(_('No such group.'), 404); - return false; } $this->nickname = common_canonical_nickname($nickname_arg); @@ -58,20 +57,18 @@ class FoafGroupAction extends Action return false; } - $local = Local_group::staticGet('nickname', $this->nickname); + $local = Local_group::getKV('nickname', $this->nickname); if (!$local) { // TRANS: Client error displayed when requesting Friends of a Friend feed for a non-local group. $this->clientError(_('No such group.'), 404); - return false; } - $this->group = User_group::staticGet('id', $local->group_id); + $this->group = User_group::getKV('id', $local->group_id); if (!$this->group) { // TRANS: Client error displayed when requesting Friends of a Friend feed for a nickname that is not a group. $this->clientError(_('No such group.'), 404); - return false; } common_set_returnto($this->selfUrl()); @@ -79,7 +76,7 @@ class FoafGroupAction extends Action return true; } - function handle($args) + function handle(array $args=array()) { parent::handle($args);