Merge "Move MediaHandler defaults out of global scope"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 4 Aug 2016 09:30:53 +0000 (09:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 4 Aug 2016 09:30:53 +0000 (09:30 +0000)
1  2 
includes/DefaultSettings.php

@@@ -398,13 -398,9 +398,13 @@@ $wgAllowImageMoving = true
  $wgEnableAsyncUploads = false;
  
  /**
 - * These are additional characters that should be replaced with '-' in filenames
 + * Additional characters that are not allowed in filenames. They are replaced with '-' when
 + * uploading. Like $wgLegalTitleChars, this is a regexp character class.
 + *
 + * Slashes and backslashes are disallowed regardless of this setting, but included here for
 + * completeness.
   */
 -$wgIllegalFileChars = ":";
 +$wgIllegalFileChars = ":\\/\\\\";
  
  /**
   * What directory to place deleted uploads in.
@@@ -945,22 -941,11 +945,11 @@@ $wgTrustedMediaFormats = 
  /**
   * Plugins for media file type handling.
   * Each entry in the array maps a MIME type to a class name
+  *
+  * Core media handlers are listed in MediaHandlerFactory,
+  * and extensions should use extension.json.
   */
- $wgMediaHandlers = [
-       'image/jpeg' => 'JpegHandler',
-       'image/png' => 'PNGHandler',
-       'image/gif' => 'GIFHandler',
-       'image/tiff' => 'TiffHandler',
-       'image/webp' => 'WebPHandler',
-       'image/x-ms-bmp' => 'BmpHandler',
-       'image/x-bmp' => 'BmpHandler',
-       'image/x-xcf' => 'XCFHandler',
-       'image/svg+xml' => 'SvgHandler', // official
-       'image/svg' => 'SvgHandler', // compat
-       'image/vnd.djvu' => 'DjVuHandler', // official
-       'image/x.djvu' => 'DjVuHandler', // compat
-       'image/x-djvu' => 'DjVuHandler', // compat
- ];
+ $wgMediaHandlers = [];
  
  /**
   * Plugins for page content model handling.
@@@ -2524,7 -2509,7 +2513,7 @@@ $wgFileCacheDepth = 2
  
  /**
   * Kept for extension compatibility; see $wgParserCacheType
 - * @deprecated 1.26
 + * @deprecated since 1.26
   */
  $wgEnableParserCache = true;