]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/groupnoprofileexception.php
Appropriate exception message in GroupNoProfileException
[quix0rs-gnu-social.git] / lib / groupnoprofileexception.php
index 6d8b6a424810d0472590f1a441b8eeb1847e08a9..29d0f06257d15450c1967ab8cd11fbd1fc701288 100644 (file)
@@ -55,8 +55,8 @@ class GroupNoProfileException extends NoProfileException
 
         // 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(_('User %1$s (%2$d) has no profile record.'),
-                           $group->nickname, $group->id);
+        $message = sprintf(_('Group "%1$s" (%2$d) has no profile record.'),
+                           $group->nickname, $group->getID());
 
         parent::__construct($group->profile_id, $message);
     }