]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/unknownmimeextensionexception.php
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
[quix0rs-gnu-social.git] / lib / unknownmimeextensionexception.php
index 0937467d07b6357c5cbce494a722987b50951120..fbc3a6774233c090baaeedb7686bd247071c945d 100644 (file)
@@ -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);
     }
 }