]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noprofileexception.php
Replies don't have verbs (we'll do some join magic later)
[quix0rs-gnu-social.git] / lib / noprofileexception.php
index eebdc3bafee7baff1c6437c807ae233885bd8c00..3469f534c4b3c6ebdf6a0106e0c9b9da13a12ce4 100644 (file)
@@ -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);