X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupnoprofileexception.php;h=29d0f06257d15450c1967ab8cd11fbd1fc701288;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=cd9ff812b7183b6dee89c89b817bf3bebb849288;hpb=cd0e3f1fa450868222c324daffdc188285e03523;p=quix0rs-gnu-social.git diff --git a/lib/groupnoprofileexception.php b/lib/groupnoprofileexception.php index cd9ff812b7..29d0f06257 100644 --- a/lib/groupnoprofileexception.php +++ b/lib/groupnoprofileexception.php @@ -41,7 +41,7 @@ if (!defined('GNUSOCIAL')) { exit(1); } class GroupNoProfileException extends NoProfileException { - public $group = null; + protected $group = null; /** * constructor @@ -53,10 +53,10 @@ class GroupNoProfileException extends NoProfileException { $this->group = $group; - // 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). - $message = sprintf(_('User %1$s (%2$d) has no profile record.'), - $group->nickname, $group->id); + // TRANS: Exception text shown when no profile can be found for a group. + // TRANS: %1$s is a group nickname, $2$d is a group profile_id (number). + $message = sprintf(_('Group "%1$s" (%2$d) has no profile record.'), + $group->nickname, $group->getID()); parent::__construct($group->profile_id, $message); }