* Compatibility with incorrectly detected old-style DJVU mime types
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Oct 2007 20:23:14 +0000 (20:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Oct 2007 20:23:14 +0000 (20:23 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/MimeMagic.php

index 98bae4f..c2e0f30 100644 (file)
@@ -80,6 +80,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11474) Fix unintentional fall-through in math error handling
 * (bug 11478) Fix undefined method call in file deletion interface
 * (bug 278) Search results no longer highlight incorrect partial word matches
+* Compatibility with incorrectly detected old-style DJVU mime types
 
 
 === API changes in 1.12 ===
index 17c31ae..7bb13de 100644 (file)
@@ -1603,9 +1603,11 @@ $wgMediaHandlers = array(
        'image/png' => 'BitmapHandler',
        'image/gif' => 'BitmapHandler',
        'image/x-ms-bmp' => 'BmpHandler',
-       'image/svg+xml' => 'SvgHandler',
-       'image/svg' => 'SvgHandler',
-       'image/vnd.djvu' => 'DjVuHandler',
+       'image/svg+xml' => 'SvgHandler', // official
+       'image/svg' => 'SvgHandler', // compat
+       'image/vnd.djvu' => 'DjVuHandler', // official
+       'image/x.djvu' => 'DjVuHandler', // compat
+       'image/x-djvu' => 'DjVuHandler', // compat
 );
 
 
index 264a359..fd42499 100644 (file)
@@ -24,7 +24,7 @@ image/jpeg jpeg jpg jpe
 image/png png
 image/svg+xml image/svg svg
 image/tiff tiff tif
-image/vnd.djvu djvu
+image/vnd.djvu image/x.djvu image/x-djvu djvu
 image/x-portable-pixmap ppm
 text/plain txt
 text/html html htm