1234567891011121314151617181920212223242526272829303132 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class NoUploadedMediaException extends ClientException
- {
- public $fieldname = null;
- public function __construct($fieldname, $msg=null)
- {
- $this->fieldname = $fieldname;
- if ($msg === null) {
-
-
- $msg = sprintf(_('There is no uploaded media for input field "%s".'), $this->fieldname);
- }
- parent::__construct($msg, 400);
- }
- }
|