Added 2 more options for mime-type detection. We now detect if the Fileinfo PECL...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 9 Sep 2010 21:34:44 +0000 (21:34 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 9 Sep 2010 21:34:44 +0000 (21:34 +0000)
commit8e6e2dd1d34bb954688780fcd2aa76dbec073657
treeb773b1d23fb822bf1d542846378633fa4e8e668e
parent3856a46650a73ca5773df0cd0d2ca2678997f219
Added 2 more options for mime-type detection. We now detect if the Fileinfo PECL extension is available and use it (PHP 5.3+ will have this more commonly than older versions), then try and use the now deprecated mime_content_type, and finally resort to inferring the mime-type from the file extension. Also, now if all else fails, we will gracefully degrade functionality by not embedding resources with undeterminable mime-types.
includes/libs/CSSMin.php