X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=fa57b8f79370d274a9e20f9c8a79fd95d8c5a3b6;hb=4665ea46651be9194b0435a50b981157dd7079f4;hp=5ab557eb8a868a395812503a0345b3166409da4f;hpb=571d4c27c1adcaaec3f7a53c42dd35d031ccdcaa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 5ab557eb8a..fa57b8f793 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -52,6 +52,8 @@ if ( !defined( 'MEDIAWIKI' ) ) { die( 1 ); } +/** @endcond */ + /** * wgConf hold the site configuration. * Not used for much in a default install. @@ -73,7 +75,7 @@ $wgConfigRegistry = array( * MediaWiki version number * @since 1.2 */ -$wgVersion = '1.25alpha'; +$wgVersion = '1.26alpha'; /** * Name of the site. It must be changed in LocalSettings.php @@ -2145,28 +2147,6 @@ $wgObjectCaches = array( 'hash' => array( 'class' => 'HashBagOStuff' ), ); -/** - * Map of bloom filter store names to configuration arrays. - * - * Example: - * $wgBloomFilterStores['main'] = array( - * 'cacheId' => 'main-v1', - * 'class' => 'BloomCacheRedis', - * 'redisServers' => array( '127.0.0.1:6379' ), - * 'redisConfig' => array( 'connectTimeout' => 2 ) - * ); - * - * A primary bloom filter must be created manually. - * Example in eval.php: - * - * BloomCache::get( 'main' )->init( 'shared', 1000000000, .001 ); - * - * The size should be as large as practical given wiki size and resources. - * - * @since 1.24 - */ -$wgBloomFilterStores = array(); - /** * The expiry time for the parser cache, in seconds. * The default is 86400 (one day). @@ -3358,8 +3338,6 @@ $wgResourceModules = array(); * * As with $wgResourceModules, paths default to being relative to the MediaWiki root. * You should always provide a localBasePath and remoteBasePath (or remoteExtPath/remoteSkinPath). - * Either for all skin styles at once (first example below) or for each module separately (second - * example). * * @par Example: * @code @@ -3369,19 +3347,6 @@ $wgResourceModules = array(); * 'remoteSkinPath' => 'Foo', * 'localBasePath' => __DIR__, * ); - * - * $wgResourceModuleSkinStyles['foo'] = array( - * 'bar' => array( - * 'bar.css', - * 'remoteSkinPath' => 'Foo', - * 'localBasePath' => __DIR__, - * ), - * 'quux' => array( - * 'quux.css', - * 'remoteSkinPath' => 'Foo', - * 'localBasePath' => __DIR__, - * ), - * ); * @endcode */ $wgResourceModuleSkinStyles = array(); @@ -4003,7 +3968,7 @@ $wgUrlProtocols = array( ); /** - * If true, removes (substitutes) templates in "~~~~" signatures. + * If true, removes (by substituting) templates in signatures. */ $wgCleanSignatures = true; @@ -4226,6 +4191,18 @@ $wgPasswordSalt = true; */ $wgMinimalPasswordLength = 1; +/** + * Specifies the maximal length of a user password (T64685). + * + * It is not recommended to make this greater than the default, as it can + * allow DoS attacks by users setting really long passwords. In addition, + * this should not be lowered too much, as it enforces weak passwords. + * + * @warning Unlike other password settings, user with passwords greater than + * the maximum will not be able to log in. + */ +$wgMaximalPasswordLength = 4096; + /** * Specifies if users should be sent to a password-reset form on login, if their * password doesn't meet the requirements of User::isValidPassword(). @@ -5311,16 +5288,16 @@ $wgDebugLogGroups = array(); * * The value should be an array suitable for use with * ObjectFactory::getObjectFromSpec(). The created object is expected to - * implement the MWLoggerSpi interface. See ObjectFactory for additional + * implement the MediaWiki\Logger\Spi interface. See ObjectFactory for additional * details. * - * Alternately the MWLoggerFactory::registerProvider method can be called to - * inject an MWLoggerSpi instance into MWLoggerFactory and bypass the use of - * this configuration variable entirely. + * Alternately the MediaWiki\Logger\LoggerFactory::registerProvider method can + * be called to inject an MediaWiki\Logger\Spi instance into the LoggerFactory + * and bypass the use of this configuration variable entirely. * * @par To completely disable logging: * @code - * $wgMWLoggerDefaultSpi = array( 'class' => 'MWLoggerNullSpi' ); + * $wgMWLoggerDefaultSpi = array( 'class' => '\\MediaWiki\\Logger\\NullSpi' ); * @endcode * * @since 1.25 @@ -5328,7 +5305,7 @@ $wgDebugLogGroups = array(); * @see MwLogger */ $wgMWLoggerDefaultSpi = array( - 'class' => 'MWLoggerLegacySpi', + 'class' => '\\MediaWiki\\Logger\\LegacySpi', ); /** @@ -5411,6 +5388,7 @@ $wgDeprecationReleaseLimit = false; /** * Only record profiling info for pages that took longer than this + * @deprecated since 1.25: set $wgProfiler['threshold'] instead. */ $wgProfileLimit = 0.0;