X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=69da9c71d9e0b4ed2bbf46aa96ecc776a4ab4ce5;hb=b537e44c4ea80c06e969f94a77377ea7e3626084;hp=4cafc8f23e84d68ae11a2143227d2ea013ef6c2a;hpb=d183642dfb1ef04d8c3dd552a103c9897035df94;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 4cafc8f23e..69da9c71d9 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2563,26 +2563,35 @@ $wgUseLocalMessageCache = false; $wgAdaptiveMessageCache = false; /** - * Localisation cache configuration. Associative array with keys: - * class: The class to use. May be overridden by extensions. + * Localisation cache configuration. * - * store: The location to store cache data. May be 'files', 'array', 'db' or - * 'detect'. If set to "files", data will be in CDB files. If set - * to "db", data will be stored to the database. If set to - * "detect", files will be used if $wgCacheDirectory is set, - * otherwise the database will be used. - * "array" is an experimental option that uses PHP files that - * store static arrays. + * Used by Language::getLocalisationCache() to decide how to construct the + * LocalisationCache instance. Associative array with keys: * - * storeClass: The class name for the underlying storage. If set to a class - * name, it overrides the "store" setting. + * class: The class to use for constructing the LocalisationCache object. + * This may be overridden by extensions to a subclass of LocalisationCache. + * Sub classes are expected to still honor the 'storeClass', 'storeDirectory' + * and 'manualRecache' options where applicable. * - * storeDirectory: If the store class puts its data in files, this is the - * directory it will use. If this is false, $wgCacheDirectory - * will be used. + * storeClass: Which LCStore class implementation to use. This is optional. + * The default LocalisationCache class offers the 'store' option + * as abstraction for this. * - * manualRecache: Set this to true to disable cache updates on web requests. - * Use maintenance/rebuildLocalisationCache.php instead. + * store: How and where to store localisation cache data. + * This option is ignored if 'storeClass' is explicitly set to a class name. + * Must be one of: + * - 'detect' (default): Automatically select 'files' if 'storeDirectory' + * or $wgCacheDirectory is set, and fall back to 'db' otherwise. + * - 'files': Store in $wgCacheDirectory as CDB files. + * - 'array': Store in $wgCacheDirectory as PHP static array files. + * - 'db': Store in the l10n_cache database table. + * + * storeDirectory: If the selected LCStore class puts its data in files, then it + * will use this directory. If set to false (default), then + * $wgCacheDirectory is used instead. + * + * manualRecache: Set this to true to disable cache updates on web requests. + * Use maintenance/rebuildLocalisationCache.php instead. */ $wgLocalisationCacheConf = [ 'class' => LocalisationCache::class, @@ -3488,7 +3497,7 @@ $wgFooterIcons = [ // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png" // plus srcset for 1.5x, 2x resolution variants. "src" => null, - "url" => "//www.mediawiki.org/", + "url" => "https://www.mediawiki.org/", "alt" => "Powered by MediaWiki", ] ], @@ -4864,7 +4873,6 @@ $wgDefaultUserOptions = [ 'previewonfirst' => 0, 'previewontop' => 1, 'rcdays' => 7, - 'rcenhancedfilters' => 0, 'rcenhancedfilters-disable' => 0, 'rclimit' => 50, 'rows' => 25, // @deprecated since 1.29 No longer used in core @@ -6852,7 +6860,7 @@ $wgRCLinkDays = [ 1, 3, 7, 14, 30 ]; * FormattedRCFeed-specific options: * - 'uri' -- [required] The address to which the messages are sent. * The uri scheme of this string will be looked up in $wgRCEngines - * to determine which RCFeedEngine class to use. + * to determine which FormattedRCFeed class to use. * - 'formatter' -- [required] The class (implementing RCFeedFormatter) which will * produce the text to send. This can also be an object of the class. * Formatters available by default: JSONRCFeedFormatter, XMLRCFeedFormatter, @@ -8422,6 +8430,13 @@ $wgLocalVirtualHosts = []; */ $wgHTTPConnectTimeout = 5e0; +/** + * Whether to respect/honour the request ID provided by the incoming request + * via the `X-Request-Id` header. Set to `true` if the entity sitting in front + * of Mediawiki sanitises external requests. Default: `false`. + */ +$wgAllowExternalReqID = false; + /** @} */ # End HTTP client } /************************************************************************//**