手册:$wgXMLMimeTypes

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgXMLMimeTypes and the translation is 60% complete.

Other languages:
English • ‎dansk • ‎español • ‎polski • ‎中文 • ‎日本語
MIME类型: $wgXMLMimeTypes
An array of XML MIME types we can detect via MimeMagic
引进版本:1.13.0 (r36960)
移除版本:仍在使用
允许的值:(数组)
默认值:(参见下方)

详情

This setting allows users to specify what XML-based formats they wish to detect via MimeMagic. It maps the root element used by the XML-based format to the MIME type used for that format.

In this associative array, the key is the root element of the XML document (or xmlns-URI:root-element), and the value is the associated MIME type.

默认值:

$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',
	'html' => 'text/html',
);

参见