X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fuserbyid.php;h=09fb4258d9c4a3c4fd0a27813c47707d77e6042e;hb=0af75a5a2a9a62826594b7526aa7749ab7844b62;hp=86a61f20b301015b20fdd451bf4fc9296d97d503;hpb=75c00f0054c08c7b49515c849260afbb6913f525;p=quix0rs-gnu-social.git diff --git a/actions/userbyid.php b/actions/userbyid.php index 86a61f20b3..09fb4258d9 100644 --- a/actions/userbyid.php +++ b/actions/userbyid.php @@ -1,5 +1,4 @@ trimmed('id'); if (!$id) { - $this->clientError(_('No id.')); + // TRANS: Client error displayed trying to find a user by ID without providing an ID. + $this->clientError(_('No ID.')); } - $user =& User::staticGet($id); + $user = User::getKV($id); if (!$user) { + // TRANS: Client error displayed trying to find a user by ID for a non-existing ID. $this->clientError(_('No such user.')); } @@ -88,4 +89,3 @@ class UserbyidAction extends Action common_redirect($url, 303); } } -