X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fprofiletagbyid.php;h=af27b245c879a9085005fcb127ec61ef3e6f377e;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=396e634abae6fa49d8c7e093c76fd1ac4b270439;hpb=4ab995dd1ef9b1b4d22f27223a7d28b12895ff93;p=quix0rs-gnu-social.git diff --git a/actions/profiletagbyid.php b/actions/profiletagbyid.php index 396e634aba..af27b245c8 100644 --- a/actions/profiletagbyid.php +++ b/actions/profiletagbyid.php @@ -40,12 +40,12 @@ class ProfiletagbyidAction 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); @@ -55,20 +55,18 @@ class ProfiletagbyidAction extends Action if (!$id) { // TRANS: Client error displayed trying to perform an action without providing an ID. $this->clientError(_('No ID.')); - return false; } common_debug("Peopletag id $id by user id $tagger_id"); - $this->peopletag = Profile_list::staticGet('id', $id); + $this->peopletag = Profile_list::getKV('id', $id); if (!$this->peopletag) { // TRANS: Client error displayed trying to reference a non-existing list. $this->clientError(_('No such list.'), 404); - return false; } - $user = User::staticGet('id', $tagger_id); + $user = User::getKV('id', $tagger_id); if (!$user) { // remote peopletag, permanently redirect common_redirect($this->peopletag->permalink(), 301); @@ -85,7 +83,7 @@ class ProfiletagbyidAction extends Action * * @return void */ - function handle($args) + function handle(array $args=array()) { common_redirect($this->peopletag->homeUrl(), 303); }