From: Kunal Mehta Date: Sun, 3 May 2015 02:38:29 +0000 (-0700) Subject: registration: Support $wgMediaHandlers in ExtensionProcessor X-Git-Tag: 1.31.0-rc.0~11509^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=e5aca92ebc7d242b0affed59e5b3ba46fbb6f639;p=lhc%2Fweb%2Fwiklou.git registration: Support $wgMediaHandlers in ExtensionProcessor Bug: T97908 Change-Id: I3bea9273f956d93aebc5176b83d375c574715382 --- diff --git a/docs/extension.schema.json b/docs/extension.schema.json index d1b982c519..b52369f892 100644 --- a/docs/extension.schema.json +++ b/docs/extension.schema.json @@ -542,6 +542,10 @@ "type": "object", "description": "Flags (letter symbols) shown on RecentChanges pages" }, + "MediaHandlers": { + "type": "object", + "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name." + }, "ExtensionFunctions": { "type": [ "array", diff --git a/includes/registration/ExtensionProcessor.php b/includes/registration/ExtensionProcessor.php index a5349fb4ac..561e798fe3 100644 --- a/includes/registration/ExtensionProcessor.php +++ b/includes/registration/ExtensionProcessor.php @@ -26,6 +26,7 @@ class ExtensionProcessor implements Processor { 'RateLimits', 'ParserTestFiles', 'RecentChangesFlags', + 'MediaHandlers', 'ExtensionFunctions', 'ExtensionEntryPointListFiles', 'SpecialPages',