dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resourceloader: Add $context to static functions in ResourceLoader
[lhc/web/wiklou.git]
/
includes
/
DevelopmentSettings.php
diff --git
a/includes/DevelopmentSettings.php
b/includes/DevelopmentSettings.php
index
103ff45
..
d93caa7
100644
(file)
--- a/
includes/DevelopmentSettings.php
+++ b/
includes/DevelopmentSettings.php
@@
-24,8
+24,9
@@
ini_set( 'display_errors', 1 );
/**
* Debugging for MediaWiki
*/
/**
* Debugging for MediaWiki
*/
+
global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames,
global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames,
- $wgDebugRawPage, $wg
SQLMode, $wg
CommandLineMode, $wgDebugLogFile,
+ $wgDebugRawPage, $wgCommandLineMode, $wgDebugLogFile,
$wgDBerrorLog, $wgDebugLogGroups;
// Use of wfWarn() should cause tests to fail
$wgDBerrorLog, $wgDebugLogGroups;
// Use of wfWarn() should cause tests to fail
@@
-36,9
+37,6
@@
$wgShowExceptionDetails = true;
$wgShowHostnames = true;
$wgDebugRawPage = true; // T49960
$wgShowHostnames = true;
$wgDebugRawPage = true; // T49960
-// Enable MariaDB/MySQL strict mode
-$wgSQLMode = 'TRADITIONAL';
-
// Enable log files
$logDir = getenv( 'MW_LOG_DIR' );
if ( $logDir ) {
// Enable log files
$logDir = getenv( 'MW_LOG_DIR' );
if ( $logDir ) {
@@
-54,9
+52,25
@@
if ( $logDir ) {
}
unset( $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 = [];
// 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;
// Disable legacy javascript globals in CI and for devs (T72470)
$wgLegacyJavaScriptGlobals = false;