DevelopmentSettings: Make sure all currently used global have a global call

Bug: T263475
Change-Id: I8a09a58d7ef2ed56eb26832e0899a4d2e15e5b72
This commit is contained in:
Reedy 2020-09-21 17:08:42 +01:00
parent c3d02f17d2
commit 7535a26594

View file

@ -27,7 +27,7 @@ ini_set( 'display_errors', 1 );
global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames,
$wgDebugRawPage, $wgCommandLineMode, $wgDebugLogFile,
$wgDBerrorLog, $wgDebugLogGroups, $wgLocalisationCacheConf;
$wgDBerrorLog, $wgDebugLogGroups;
// Use of wfWarn() should cause tests to fail
$wgDevelopmentWarnings = true;
@ -56,7 +56,7 @@ unset( $logDir );
* Make testing possible (or easier)
*/
global $wgRateLimits;
global $wgRateLimits, $wgEnableJavaScriptTest, $wgRestAPIAdditionalRouteFiles;
// Disable rate-limiting to allow integration tests to run unthrottled
// in CI and for devs locally (T225796)
@ -74,7 +74,8 @@ $wgRestAPIAdditionalRouteFiles = [ 'includes/Rest/coreDevelopmentRoutes.json' ];
* (Must reference a Phabricator ticket)
*/
global $wgSQLMode, $wgLegacyJavaScriptGlobals;
global $wgSQLMode, $wgLegacyJavaScriptGlobals, $wgLocalisationCacheConf,
$wgCacheDirectory, $wgEnableUploads, $wgCiteBookReferencing;
// Enable MariaDB/MySQL strict mode (T108255)
$wgSQLMode = 'TRADITIONAL';
@ -86,7 +87,6 @@ $wgLegacyJavaScriptGlobals = false;
$wgLocalisationCacheConf['store'] = 'array';
// Experimental Book Referencing feature (T236255)
global $wgCiteBookReferencing;
$wgCiteBookReferencing = true;
// The default value is false, but for development it is useful to set this to the system temp
@ -96,5 +96,4 @@ $wgCacheDirectory = TempFSFile::getUsableTempDirectory() .
rawurlencode( WikiMap::getCurrentWikiId() );
// Enable uploads for FileImporter browser tests (T190829)
global $wgEnableUploads;
$wgEnableUploads = true;