X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fhcard.php;h=6db2972b9dcf40a727f94bc45bc20091bcd4d031;hb=c48cdc7d50cc2920e3f41e34e9b5e19638331dd9;hp=55d0f65c8f7b866b6bdbdfc0d7d9f56233aee40e;hpb=76216af806b1a683e1b885724bc68906214209c2;p=quix0rs-gnu-social.git diff --git a/actions/hcard.php b/actions/hcard.php index 55d0f65c8f..6db2972b9d 100644 --- a/actions/hcard.php +++ b/actions/hcard.php @@ -40,7 +40,6 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3 * @link http://status.net/ */ - class HcardAction extends Action { var $user; @@ -64,6 +63,7 @@ class HcardAction extends Action $this->user = User::staticGet('nickname', $nickname); if (!$this->user) { + // TRANS: Client error displayed when trying to get a user hCard for a non-existing user. $this->clientError(_('No such user.'), 404); return false; } @@ -71,6 +71,7 @@ class HcardAction extends Action $this->profile = $this->user->getProfile(); if (!$this->profile) { + // TRANS: Error message displayed when referring to a user without a profile. $this->serverError(_('User has no profile.')); return false; } @@ -117,4 +118,4 @@ class ShortUserProfile extends UserProfile { return; } -} \ No newline at end of file +}