X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=blobdiff_plain;f=includes%2Flibs%2FCSSMin.php;h=3129c5b21bcfdd49e869a1ba219102cc623e99c4;hb=d4cc4f2b4f20725725a9345c7a4b7906e5aa66d2;hp=92a4f9e6f42ba581bbba5cd519b9d6ca91ab3044;hpb=eadc306573803f444fd692b701823f9939fdd9e7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index 92a4f9e6f4..3129c5b21b 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -202,11 +202,7 @@ class CSSMin { public static function getMimeType( $file ) { // Infer the MIME-type from the file extension $ext = strtolower( pathinfo( $file, PATHINFO_EXTENSION ) ); - if ( isset( self::$mimeTypes[$ext] ) ) { - return self::$mimeTypes[$ext]; - } - - return mime_content_type( realpath( $file ) ); + return self::$mimeTypes[$ext] ?? mime_content_type( realpath( $file ) ); } /**