MediaWiki  master
DevelopmentSettings.php File Reference

Extra settings useful for MediaWiki development. More...

Go to the source code of this file.

Variables

 $logDir = getenv( 'MW_LOG_DIR' )
 
global $wgCacheDirectory
 
global $wgCiteBookReferencing = true
 
global $wgCommandLineMode
 
global $wgDBerrorLog
 
global $wgDebugLogFile
 
global $wgDebugLogGroups
 
 $wgDefaultUserOptions ['visualeditor-newwikitext'] = 0
 
global $wgDeferredUpdateStrategy
 
global $wgDevelopmentWarnings = true
 Debugging for MediaWiki. More...
 
global $wgEnableJavaScriptTest = true
 
global $wgEnableUploads = true
 
 $wgForceDeferredUpdatesPreSend = true
 
global $wgLocalisationCacheConf
 
 $wgLocalisationCacheConf ['store'] = 'array'
 
 $wgPasswordAttemptThrottle
 
global $wgRateLimits
 Make testing possible (or easier) More...
 
global $wgRestAPIAdditionalRouteFiles = [ 'includes/Rest/coreDevelopmentRoutes.json' ]
 
global $wgShowExceptionDetails = true
 
global $wgShowHostnames = true
 
global $wgSQLMode = 'STRICT_ALL_TABLES,ONLY_FULL_GROUP_BY'
 Experimental changes that may later become the default. More...
 
 $wgVisualEditorEnableWikitext = true
 

Detailed Description

Extra settings useful for MediaWiki development.

To enable built-in debug and development settings, add the following to your LocalSettings.php file.

require "$IP/includes/DevelopmentSettings.php";

Definition in file DevelopmentSettings.php.

Variable Documentation

◆ $logDir

$logDir = getenv( 'MW_LOG_DIR' )

Definition at line 53 of file DevelopmentSettings.php.

◆ $wgCacheDirectory

$wgCacheDirectory
Initial value:
DIRECTORY_SEPARATOR .
rawurlencode( WikiMap::getCurrentWikiId() )
static getUsableTempDirectory()
Definition: TempFSFile.php:80
static getCurrentWikiId()
Definition: WikiMap.php:303

Definition at line 110 of file DevelopmentSettings.php.

◆ $wgCiteBookReferencing

$wgCiteBookReferencing = true

Definition at line 110 of file DevelopmentSettings.php.

◆ $wgCommandLineMode

◆ $wgDBerrorLog

global $wgDBerrorLog

Definition at line 43 of file DevelopmentSettings.php.

◆ $wgDebugLogFile

global $wgDebugLogFile

Definition at line 42 of file DevelopmentSettings.php.

◆ $wgDebugLogGroups

global $wgDebugLogGroups

Definition at line 43 of file DevelopmentSettings.php.

◆ $wgDefaultUserOptions

$wgDefaultUserOptions[ 'visualeditor-newwikitext'] = 0

Definition at line 133 of file DevelopmentSettings.php.

◆ $wgDeferredUpdateStrategy

global $wgDeferredUpdateStrategy

Definition at line 72 of file DevelopmentSettings.php.

◆ $wgDevelopmentWarnings

$wgDevelopmentWarnings = true

Debugging for MediaWiki.

Definition at line 41 of file DevelopmentSettings.php.

◆ $wgEnableJavaScriptTest

foreach ($wgRateLimits as $right=> & $limit) $wgEnableJavaScriptTest = true

Definition at line 71 of file DevelopmentSettings.php.

◆ $wgEnableUploads

$wgEnableUploads = true

Definition at line 110 of file DevelopmentSettings.php.

◆ $wgForceDeferredUpdatesPreSend

$wgForceDeferredUpdatesPreSend = true

Definition at line 102 of file DevelopmentSettings.php.

◆ $wgLocalisationCacheConf [1/2]

global $wgLocalisationCacheConf

Definition at line 109 of file DevelopmentSettings.php.

◆ $wgLocalisationCacheConf [2/2]

$wgLocalisationCacheConf[ 'store'] = 'array'

Definition at line 116 of file DevelopmentSettings.php.

◆ $wgPasswordAttemptThrottle

$wgPasswordAttemptThrottle
Initial value:
= [
[ 'count' => 1000, 'seconds' => 300 ],
[ 'count' => 100000, 'seconds' => 60 * 60 * 48 ],
]

Definition at line 92 of file DevelopmentSettings.php.

◆ $wgRateLimits

global $wgRateLimits

Make testing possible (or easier)

Definition at line 71 of file DevelopmentSettings.php.

◆ $wgRestAPIAdditionalRouteFiles

$wgRestAPIAdditionalRouteFiles = [ 'includes/Rest/coreDevelopmentRoutes.json' ]

Definition at line 71 of file DevelopmentSettings.php.

◆ $wgShowExceptionDetails

$wgShowExceptionDetails = true

Definition at line 41 of file DevelopmentSettings.php.

◆ $wgShowHostnames

$wgShowHostnames = true

Definition at line 41 of file DevelopmentSettings.php.

◆ $wgSQLMode

$wgSQLMode = 'STRICT_ALL_TABLES,ONLY_FULL_GROUP_BY'

Experimental changes that may later become the default.

(Must reference a Phabricator ticket)

Definition at line 109 of file DevelopmentSettings.php.

◆ $wgVisualEditorEnableWikitext

$wgVisualEditorEnableWikitext = true

Definition at line 131 of file DevelopmentSettings.php.