X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fprofiletagbyid.php;h=f20f1bde4fc62cbcbcd6349dbc9e48e4bd0499a1;hb=49b755912f56ed6b626d68e04ae634f6264ef58d;hp=7de5737e9a6251ee5ec751221d3292bc641cdb55;hpb=e75c9988ebe33822e493ac225859bc593ff9b855;p=quix0rs-gnu-social.git diff --git a/actions/profiletagbyid.php b/actions/profiletagbyid.php index 7de5737e9a..f20f1bde4f 100644 --- a/actions/profiletagbyid.php +++ b/actions/profiletagbyid.php @@ -40,7 +40,6 @@ class ProfiletagbyidAction extends Action * * @return boolean true */ - function isReadOnly($args) { return true; @@ -54,20 +53,22 @@ class ProfiletagbyidAction extends Action $tagger_id = $this->arg('tagger_id'); 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) { - $this->clientError(_('No such people tag.'), 404); + // 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); @@ -84,7 +85,6 @@ class ProfiletagbyidAction extends Action * * @return void */ - function handle($args) { common_redirect($this->peopletag->homeUrl(), 303);