1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class NoProfileException extends ServerException
- {
- public $profile_id = null;
- public function __construct($profile_id, $msg=null)
- {
- $this->profile_id = $profile_id;
- if ($msg === null) {
-
-
- $msg = sprintf(_('There is no profile with id==%u'), $this->profile_id);
- }
- parent::__construct($msg, 404);
- }
- }
|