X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Funknownmimeextensionexception.php;h=fbc3a6774233c090baaeedb7686bd247071c945d;hb=bc1f8b5db6d10fc2d060135a11c0898bbf48abd3;hp=0937467d07b6357c5cbce494a722987b50951120;hpb=b4a0bff740b7b654bd405f27910c62a60ec58fc7;p=quix0rs-gnu-social.git diff --git a/lib/unknownmimeextensionexception.php b/lib/unknownmimeextensionexception.php index 0937467d07..fbc3a67742 100644 --- a/lib/unknownmimeextensionexception.php +++ b/lib/unknownmimeextensionexception.php @@ -17,14 +17,11 @@ if (!defined('GNUSOCIAL')) { exit(1); } class UnknownMimeExtensionException extends ServerException { - public function __construct($msg=null) + public function __construct($mimetype) { - if ($msg === null) { - // TRANS: We accept the file type (we probably just accept all files) - // TRANS: but don't know the file extension for it. - $msg = _('Supported mimetype but unknown extension relation.'); - } - + // TRANS: We accept the file type (we probably just accept all files) + // TRANS: but don't know the file extension for it. + $msg = sprintf(_('Supported mimetype but unknown extension relation: %1$s'), _ve($mimetype)); parent::__construct($msg); } }