X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=87dbd97415ba8d4744ecbae23b6ecceece303370;hb=8613fdfe0203bf78067173dcc3fedd24a5f476fc;hp=6d08eecaa635b73b591f71b2c1f38191809eaefe;hpb=932d71124353187f1b587579b67067d9f63da133;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 6d08eecaa6..87dbd97415 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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. @@ -941,22 +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. @@ -1444,7 +1437,10 @@ $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' => 25, // Length of caption to truncate (in characters) + '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 'mode' => 'traditional', ]; @@ -2517,7 +2513,7 @@ $wgFileCacheDepth = 2; /** * Kept for extension compatibility; see $wgParserCacheType - * @deprecated 1.26 + * @deprecated since 1.26 */ $wgEnableParserCache = true; @@ -2882,15 +2878,6 @@ $wgDummyLanguageCodes = [ 'zh-yue' => 'yue', ]; -/** - * Character set for use in the article edit box. Language-specific encodings - * may be defined. - * - * This historic feature is one of the first that was added by former MediaWiki - * team leader Brion Vibber, and is used to support the Esperanto x-system. - */ -$wgEditEncoding = ''; - /** * Set this to true to replace Arabic presentation forms with their standard * forms in the U+0600-U+06FF block. This only works if $wgLanguageCode is @@ -4216,6 +4203,8 @@ $wgAllowImageTag = false; * - RaggettInternalHHVM: Use the limited-functionality HHVM extension * - 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 * * - tidyConfigFile: Path to configuration file for any of the Raggett drivers * - debugComment: True to add a comment to the output with warning messages @@ -5717,6 +5706,8 @@ $wgGrantPermissions['sendemail']['sendemail'] = true; $wgGrantPermissions['createaccount']['createaccount'] = true; +$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true; + /** * @var Array Map of grants to their UI grouping * @since 1.27 @@ -5750,6 +5741,8 @@ $wgGrantPermissionGroups = [ 'createaccount' => 'administration', 'highvolume' => 'high-volume', + + 'privateinfo' => 'private-information', ]; /** @@ -8059,10 +8052,9 @@ $wgUpdateRowsPerQuery = 100; /** * Name of the external diff engine to use. Supported values: - * * false: default PHP implementation - * * 'wikidiff2': Wikimedia's fast difference engine implemented as a PHP/HHVM module - * * 'wikidiff' and 'wikidiff3' are treated as false for backwards compatibility - * * any other string is treated as a path to external diff executable + * * string: path to an external diff executable + * * false: wikidiff2 PHP/HHVM module if installed, otherwise the default PHP implementation + * * 'wikidiff', 'wikidiff2', and 'wikidiff3' are treated as false for backwards compatibility */ $wgExternalDiffEngine = false; @@ -8345,6 +8337,21 @@ $wgEventRelayerConfig = [ ] ]; +/** + * Share data about this installation with MediaWiki developers + * + * When set to true, MediaWiki will periodically ping https://www.mediawiki.org/ with basic + * data about this MediaWiki instance. This data includes, for example, the type of system, + * PHP version, and chosen database backend. The Wikimedia Foundation shares this data with + * MediaWiki developers to help guide future development efforts. + * + * For details about what data is sent, see: https://www.mediawiki.org/wiki/Pingback + * + * @var bool + * @since 1.28 + */ +$wgPingback = false; + /** * For really cool vim folding this needs to be at the end: * vim: foldmarker=@{,@} foldmethod=marker