MediaWiki REL1_37
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
 
global $wgDebugRawPage = true
 
 $wgDefaultUserOptions ['visualeditor-newwikitext'] = 0
 
global $wgDevelopmentWarnings = true
 Debugging for MediaWiki.
 
global $wgEnableJavaScriptTest = true
 
global $wgEnableUploads = true
 
global $wgLocalisationCacheConf
 
 $wgLocalisationCacheConf ['store'] = 'array'
 
global $wgRateLimits
 Make testing possible (or easier)
 
global $wgRestAPIAdditionalRouteFiles = [ 'includes/Rest/coreDevelopmentRoutes.json' ]
 
global $wgShowExceptionDetails = true
 
global $wgShowHostnames = true
 
global $wgSQLMode = 'TRADITIONAL'
 Experimental changes that may later become the default.
 
 $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";

Alternatively, if running phpunit.php (or another Maintenance script), you can use the –mwdebug option to automatically load these settings.

Definition in file DevelopmentSettings.php.

Variable Documentation

◆ $logDir

$logDir = getenv( 'MW_LOG_DIR' )

Definition at line 41 of file DevelopmentSettings.php.

◆ $wgCacheDirectory

$wgCacheDirectory
Initial value:
= TempFSFile::getUsableTempDirectory() .
DIRECTORY_SEPARATOR .
rawurlencode( WikiMap::getCurrentWikiId() )

Definition at line 83 of file DevelopmentSettings.php.

◆ $wgCiteBookReferencing

$wgCiteBookReferencing = true

Definition at line 83 of file DevelopmentSettings.php.

◆ $wgCommandLineMode

◆ $wgDBerrorLog

global $wgDBerrorLog

Definition at line 30 of file DevelopmentSettings.php.

◆ $wgDebugLogFile

global $wgDebugLogFile

Definition at line 29 of file DevelopmentSettings.php.

◆ $wgDebugLogGroups

global $wgDebugLogGroups

Definition at line 30 of file DevelopmentSettings.php.

◆ $wgDebugRawPage

$wgDebugRawPage = true

Definition at line 29 of file DevelopmentSettings.php.

◆ $wgDefaultUserOptions

$wgDefaultUserOptions[ 'visualeditor-newwikitext'] = 0

Definition at line 106 of file DevelopmentSettings.php.

◆ $wgDevelopmentWarnings

$wgDevelopmentWarnings = true

Debugging for MediaWiki.

Definition at line 28 of file DevelopmentSettings.php.

◆ $wgEnableJavaScriptTest

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

Definition at line 59 of file DevelopmentSettings.php.

◆ $wgEnableUploads

$wgEnableUploads = true

Definition at line 83 of file DevelopmentSettings.php.

◆ $wgLocalisationCacheConf [1/2]

global $wgLocalisationCacheConf

Definition at line 82 of file DevelopmentSettings.php.

◆ $wgLocalisationCacheConf [2/2]

$wgLocalisationCacheConf[ 'store'] = 'array'

Definition at line 89 of file DevelopmentSettings.php.

◆ $wgRateLimits

global $wgRateLimits

Make testing possible (or easier)

Definition at line 59 of file DevelopmentSettings.php.

◆ $wgRestAPIAdditionalRouteFiles

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

Definition at line 59 of file DevelopmentSettings.php.

◆ $wgShowExceptionDetails

$wgShowExceptionDetails = true

Definition at line 28 of file DevelopmentSettings.php.

◆ $wgShowHostnames

$wgShowHostnames = true

Definition at line 28 of file DevelopmentSettings.php.

◆ $wgSQLMode

$wgSQLMode = 'TRADITIONAL'

Experimental changes that may later become the default.

(Must reference a Phabricator ticket)

Definition at line 82 of file DevelopmentSettings.php.

◆ $wgVisualEditorEnableWikitext

$wgVisualEditorEnableWikitext = true

Definition at line 104 of file DevelopmentSettings.php.