Merge "Add RemexHtml to the list of available Tidy drivers"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 8 Mar 2017 23:33:17 +0000 (23:33 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 8 Mar 2017 23:33:17 +0000 (23:33 +0000)
1  2 
includes/DefaultSettings.php

@@@ -1337,7 -1337,7 +1337,7 @@@ $wgXMLMimeTypes = 
   * to reduce disk usage, limits can only be selected from a list.
   * The user preference is saved as an array offset in the database, by default
   * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
 - * change it if you alter the array (see bug 8858).
 + * change it if you alter the array (see T10858).
   * This is the list of settings the user can choose from:
   */
  $wgImageLimits = [
@@@ -1442,19 -1442,14 +1442,19 @@@ $wgUseTinyRGBForJPGThumbnails = false
   * Default parameters for the "<gallery>" tag
   */
  $wgGalleryOptions = [
 -      'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
 -      'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
 -      'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
 -      'captionLength' => true, // Deprecated @since 1.28
 -                               // Length to truncate filename to in caption when using "showfilename".
 -                               // A value of 'true' will truncate the filename to one line using CSS
 -                               // and will be the behaviour after deprecation.
 -      'showBytes' => true, // Show the filesize in bytes in categories
 +      // Default number of images per-row in the gallery. 0 -> Adapt to screensize
 +      'imagesPerRow' => 0,
 +      // Width of the cells containing images in galleries (in "px")
 +      'imageWidth' => 120,
 +      // Height of the cells containing images in galleries (in "px")
 +      'imageHeight' => 120,
 +      // Length to truncate filename to in caption when using "showfilename".
 +      // A value of 'true' will truncate the filename to one line using CSS
 +      // and will be the behaviour after deprecation.
 +      // @deprecated since 1.28
 +      'captionLength' => true,
 +      // Show the filesize in bytes in categories
 +      'showBytes' => true,
        'mode' => 'traditional',
  ];
  
@@@ -2825,9 -2820,8 +2825,9 @@@ $wgUsePrivateIPs = false
   * MediaWiki out of the box. Not all languages listed there have translations,
   * see languages/messages/ for the list of languages with some localisation.
   *
 - * Warning: Don't use language codes listed in $wgDummyLanguageCodes like "no"
 - * for Norwegian (use "nb" instead), or things will break unexpectedly.
 + * Warning: Don't use any of MediaWiki's deprecated language codes listed in
 + * LanguageCode::getDeprecatedCodeMapping or $wgDummyLanguageCodes, like "no"
 + * for Norwegian (use "nb" instead). If you do, things will break unexpectedly.
   *
   * This defines the default interface language for all users, but users can
   * change it in their preferences.
@@@ -2886,22 -2880,25 +2886,22 @@@ $wgExtraInterlanguageLinkPrefixes = []
  $wgExtraLanguageNames = [];
  
  /**
 - * List of language codes that don't correspond to an actual language.
 - * These codes are mostly left-offs from renames, or other legacy things.
 - * This array makes them not appear as a selectable language on the installer,
 - * and excludes them when running the transstat.php script.
 - */
 -$wgDummyLanguageCodes = [
 -      'als' => 'gsw',
 -      'bat-smg' => 'sgs',
 -      'be-x-old' => 'be-tarask',
 -      'bh' => 'bho',
 -      'fiu-vro' => 'vro',
 -      'no' => 'nb',
 -      'qqq' => 'qqq', # Used for message documentation.
 -      'qqx' => 'qqx', # Used for viewing message keys.
 -      'roa-rup' => 'rup',
 -      'simple' => 'en',
 -      'zh-classical' => 'lzh',
 -      'zh-min-nan' => 'nan',
 -      'zh-yue' => 'yue',
 + * List of mappings from one language code to another.
 + * This array makes the codes not appear as a selectable language on the
 + * installer, and excludes them when running the transstat.php script.
 + *
 + * In Setup.php, the variable $wgDummyLanguageCodes is created by combining
 + * these codes with a list of "deprecated" codes, which are mostly leftovers
 + * from renames or other legacy things, and the internal codes 'qqq' and 'qqx'.
 + * If a mapping in $wgExtraLanguageCodes collide with a built-in mapping, the
 + * value in $wgExtraLanguageCodes will be used.
 + *
 + * @since 1.29
 + */
 +$wgExtraLanguageCodes = [
 +      'bh' => 'bho', // Bihari language family
 +      'no' => 'nb', // Norwegian language family
 +      'simple' => 'en', // Simple English
  ];
  
  /**
@@@ -3360,7 -3357,7 +3360,7 @@@ $wgDisableOutputCompression = false
   *
   * Currently this appears to work fine in all browsers, but it's disabled by
   * default because it normalizes id's a bit too aggressively, breaking preexisting
 - * content (particularly Cite).  See bug 27733, bug 27694, bug 27474.
 + * content (particularly Cite).  See T29733, T29694, T29474.
   */
  $wgExperimentalHtmlIds = false;
  
@@@ -4084,7 -4081,7 +4084,7 @@@ $wgMaxRedirects = 1
   * Attempting to create a redirect to any of the pages in this array
   * will make the redirect fail.
   * Userlogout is hard-coded, so it does not need to be listed here.
 - * (bug 10569) Disallow Mypage and Mytalk as well.
 + * (T12569) Disallow Mypage and Mytalk as well.
   *
   * As of now, this only checks special pages. Redirects to pages in
   * other namespaces cannot be invalidated by this variable.
@@@ -4238,7 -4235,8 +4238,8 @@@ $wgAllowImageTag = false
   *    - RaggettInternalPHP: Use the PECL extension
   *    - RaggettExternal: Shell out to an external binary (tidyBin)
   *    - Html5Depurate: Use external Depurate service
-  *    - Html5Internal: Use the built-in HTML5 balancer
+  *    - Html5Internal: Use the Balancer library in PHP
+  *    - RemexHtml: Use the RemexHtml library in PHP
   *
   *  - tidyConfigFile: Path to configuration file for any of the Raggett drivers
   *  - debugComment: True to add a comment to the output with warning messages
@@@ -4568,8 -4566,8 +4569,8 @@@ $wgAuthManagerAutoConfig = 
                ],
                // Linking during login is experimental, enable at your own risk - T134952
                // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
 -              //      'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
 -              //      'sort' => 100,
 +              //   'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
 +              //   'sort' => 100,
                // ],
                MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
                        'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
@@@ -4789,7 -4787,6 +4790,7 @@@ $wgReservedUsernames = 
        'Maintenance script', // Maintenance scripts which perform editing, image import script
        'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
        'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
 +      'Unknown user', // Used in WikiImporter when importing revisions with no author
        'msg:double-redirect-fixer', // Automatic double redirect fix
        'msg:usermessage-editor', // Default user for leaving user messages
        'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
@@@ -4868,7 -4865,9 +4869,7 @@@ $wgDefaultUserOptions = 
  /**
   * An array of preferences to not show for the user
   */
 -$wgHiddenPrefs = [
 -      'rcenhancedfilters',
 -];
 +$wgHiddenPrefs = [];
  
  /**
   * Characters to prevent during new account creations.
@@@ -5683,7 -5682,7 +5684,7 @@@ $wgRateLimits = 
  ];
  
  /**
 - * Array of IPs which should be excluded from rate limits.
 + * Array of IPs / CIDR ranges which should be excluded from rate limits.
   * This may be useful for whitelisting NAT gateways for conferences, etc.
   */
  $wgRateLimitsExcludedIPs = [];
@@@ -8373,7 -8372,7 +8374,7 @@@ $wgPagePropsHaveSortkey = true
  /**
   * Port where you have HTTPS running
   * Supports HTTPS on non-standard ports
 - * @see bug 65184
 + * @see T67184
   * @since 1.24
   */
  $wgHttpsPort = 443;
@@@ -8561,7 -8560,6 +8562,7 @@@ $wgCSPFalsePositiveUrls = 
        'https://atpixel.alephd.com' => true,
        'https://rtb.metrigo.com' => true,
        'https://d5p.de17a.com' => true,
 +      'https://ad.lkqd.net/vpaid/vpaid.js' => true,
  ];
  
  /**