X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fnoprofileexception.php;h=3469f534c4b3c6ebdf6a0106e0c9b9da13a12ce4;hb=c9a9a8bc58d613056a5a584a203889fd602d8ac1;hp=eebdc3bafee7baff1c6437c807ae233885bd8c00;hpb=cd0e3f1fa450868222c324daffdc188285e03523;p=quix0rs-gnu-social.git diff --git a/lib/noprofileexception.php b/lib/noprofileexception.php index eebdc3bafe..3469f534c4 100644 --- a/lib/noprofileexception.php +++ b/lib/noprofileexception.php @@ -39,19 +39,18 @@ if (!defined('GNUSOCIAL')) { exit(1); } * @link http://status.net/ */ -class NoProfileException extends NoProfileException +class NoProfileException extends ServerException { public $profile_id = null; public function __construct($profile_id, $msg=null) { - $this->id = (int)$profile_id; + $this->profile_id = $profile_id; if ($msg === null) { // TRANS: Exception text shown when no profile can be found for a user. - // TRANS: %1$s is a user nickname, $2$d is a user ID (number). - $msg = sprintf(_('User %1$s (%2$d) has no profile record.'), - $group->nickname, $group->id); + // TRANS: %u is a profile ID (number). + $msg = sprintf(_('There is no profile with id==%u'), $this->profile_id); } parent::__construct($msg, 404);