]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noprofileexception.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / noprofileexception.php
index 49b0a7e1176a7fdee24cf5d72ae6e7af883ba2ff..3469f534c4b3c6ebdf6a0106e0c9b9da13a12ce4 100644 (file)
@@ -45,12 +45,12 @@ class NoProfileException extends ServerException
 
     public function __construct($profile_id, $msg=null)
     {
-        $this->id = $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(_('There is no profile with id==%u'), $this->id);
+            // TRANS: %u is a profile ID (number).
+            $msg = sprintf(_('There is no profile with id==%u'), $this->profile_id);
         }
 
         parent::__construct($msg, 404);