https://bugzilla.wikimedia.org/show_bug.cgi?id=18426


Anon Sricharoenchai <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




--- Comment #5 from Anon Sricharoenchai <[email protected]>  2009-09-18 
09:13:15 UTC ---
The code for comment #4, will look like this,

includes/MimeMagic.php:

        $types = MM_WELL_KNOWN_MIME_TYPES;

        if ( $wgMimeTypeFile == 'includes/mime.types' ) {
            $wgMimeTypeFile = "$IP/$wgMimeTypeFile";
        }

        if ( $wgMimeTypeFile ) {
            ...
                $types .= file_get_contents( $wgMimeTypeFile );
            ...
        } else {
            ...
        }

+       if ($wgCustomMimeTypes != "") $types .= "\n" . $wgCustomMimeTypes;

        $types = str_replace( array( "\r\n", "\n\r", "\n\n", "\r\r", "\r" ),
"\n", $types );
        $types = str_replace( "\t", " ", $types );


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to