X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fhcard.php;h=8781f6f882e64514f75da759131fb2d399f815b9;hb=c30dcbebbcb383fbd2d4ba92ef5294fbb3e44244;hp=55d0f65c8f7b866b6bdbdfc0d7d9f56233aee40e;hpb=c49fbb63c56cc851153d0fecec81b4ca92b41bc6;p=quix0rs-gnu-social.git diff --git a/actions/hcard.php b/actions/hcard.php index 55d0f65c8f..8781f6f882 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: Server error displayed when trying to get a user hCard for 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 +}