Manual:$wgXMLMimeTypes

From MediaWiki.org
Jump to: navigation, search
MIME types: $wgXMLMimeTypes
An array of XML mime types we can detect via MimeMagic
Introduced in version: 1.13.0 (r36960)
Removed in version: still in use
Allowed values: (array)
Default value: (see below)

Other settings: Alphabetical | By Function


Introduced in 1.13, this setting allows for users to specify what XML mime types they wish to detect via MimeMagic. The default value (below) was taken from the hard-coded list that was already in place. The $key is the root element of the XML, and the $value is the associated mime type.

[edit] Default value

$wgXMLMimeTypes = array(
        'http://www.w3.org/2000/svg:svg'                      => 'image/svg+xml',
        'svg'                                                 => 'image/svg+xml',
        'http://www.lysator.liu.se/~alla/dia/:diagram'        => 'application/x-dia-diagram',
        'http://www.w3.org/1999/xhtml:html'                   => 'text/html', // application/xhtml+xml?
        'html'                                                => 'text/html', // application/xhtml+xml?
);
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox