X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDevelopmentSettings.php;h=668de3975d6c952f8bcc8d5932b1662f2587e6f7;hb=78e0fc3a70f5d917bc526f1c6ede4d455f46cb47;hp=103ff45bbf80a79aaa0eae428b9ed550b1b12bd8;hpb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DevelopmentSettings.php b/includes/DevelopmentSettings.php index 103ff45bbf..668de3975d 100644 --- a/includes/DevelopmentSettings.php +++ b/includes/DevelopmentSettings.php @@ -24,9 +24,10 @@ ini_set( 'display_errors', 1 ); /** * Debugging for MediaWiki */ + global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames, - $wgDebugRawPage, $wgSQLMode, $wgCommandLineMode, $wgDebugLogFile, - $wgDBerrorLog, $wgDebugLogGroups; + $wgDebugRawPage, $wgCommandLineMode, $wgDebugLogFile, + $wgDBerrorLog, $wgDebugLogGroups, $wgLocalisationCacheConf; // Use of wfWarn() should cause tests to fail $wgDevelopmentWarnings = true; @@ -36,9 +37,6 @@ $wgShowExceptionDetails = true; $wgShowHostnames = true; $wgDebugRawPage = true; // T49960 -// Enable MariaDB/MySQL strict mode -$wgSQLMode = 'TRADITIONAL'; - // Enable log files $logDir = getenv( 'MW_LOG_DIR' ); if ( $logDir ) { @@ -54,9 +52,28 @@ if ( $logDir ) { } unset( $logDir ); +/** + * Make testing possible (or easier) + */ + +global $wgRateLimits; + // Disable rate-limiting to allow integration tests to run unthrottled // in CI and for devs locally (T225796) $wgRateLimits = []; +/** + * Experimental changes that may later become the default. + * (Must reference a Phabricator ticket) + */ + +global $wgSQLMode, $wgLegacyJavaScriptGlobals; + +// Enable MariaDB/MySQL strict mode (T108255) +$wgSQLMode = 'TRADITIONAL'; + // Disable legacy javascript globals in CI and for devs (T72470) $wgLegacyJavaScriptGlobals = false; + +// Localisation Cache to StaticArray (T218207) +$wgLocalisationCacheConf['store'] = 'array';