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
 
if(MW_ENTRY_POINT==='index') global $wgDBerrorLog
 
global $wgDBStrictWarnings = true
 
if(MW_ENTRY_POINT==='index') global $wgDebugLogFile
 
if(MW_ENTRY_POINT==='index') global $wgDebugLogGroups
 
global $wgDefaultUserOptions
 
 $wgDefaultUserOptions ['visualeditor-newwikitext'] = 0
 
if(MW_ENTRY_POINT==='index') global $wgDevelopmentWarnings = true
 Debugging for MediaWiki.
 
global $wgEnableJavaScriptTest = true
 
global $wgEnableUploads = true
 
global $wgForceDeferredUpdatesPreSend = true
 
global $wgLocalisationCacheConf
 
 $wgLocalisationCacheConf ['store'] = 'array'
 
global $wgMaxArticleSize = 20
 
global $wgParsoidSettings
 
 $wgParsoidSettings ['html2wtLimits']['htmlSize'] = 100 * 1024
 
 $wgParsoidSettings ['wt2htmlLimits']['wikitextSize'] = 20 * 1024
 
global $wgPasswordAttemptThrottle
 
global $wgRateLimits
 Make testing possible (or easier)
 
global $wgRestAPIAdditionalRouteFiles
 
 $wgRestAPIAdditionalRouteFiles [] = 'includes/Rest/coreDevelopmentRoutes.json'
 
if(MW_ENTRY_POINT==='index') global $wgShowExceptionDetails = true
 
if(MW_ENTRY_POINT==='index') global $wgShowHostnames = true
 
global $wgSQLMode = 'STRICT_ALL_TABLES,ONLY_FULL_GROUP_BY'
 Experimental changes that may later become the default.
 
global $wgUsePigLatinVariant = true
 
 $wgUseXssLanguage = true
 
global $wgVisualEditorEnableWikitext = true
 
 $wgVueDevelopmentMode = 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 56 of file DevelopmentSettings.php.

◆ $wgCacheDirectory

$wgCacheDirectory
Initial value:
= TempFSFile::getUsableTempDirectory() .
DIRECTORY_SEPARATOR .
rawurlencode( MediaWiki\WikiMap\WikiMap::getCurrentWikiId() )
A helper class for throttling authentication attempts.

Definition at line 126 of file DevelopmentSettings.php.

◆ $wgCiteBookReferencing

$wgCiteBookReferencing = true

Definition at line 125 of file DevelopmentSettings.php.

◆ $wgDBerrorLog

if (MW_ENTRY_POINT==='index') global $wgDBerrorLog

Definition at line 46 of file DevelopmentSettings.php.

◆ $wgDBStrictWarnings

$wgDBStrictWarnings = true

Definition at line 125 of file DevelopmentSettings.php.

◆ $wgDebugLogFile

if (MW_ENTRY_POINT==='index') global $wgDebugLogFile

Definition at line 45 of file DevelopmentSettings.php.

◆ $wgDebugLogGroups

if (MW_ENTRY_POINT==='index') global $wgDebugLogGroups

Definition at line 46 of file DevelopmentSettings.php.

◆ $wgDefaultUserOptions [1/2]

global $wgDefaultUserOptions

Definition at line 127 of file DevelopmentSettings.php.

◆ $wgDefaultUserOptions [2/2]

$wgDefaultUserOptions[ 'visualeditor-newwikitext'] = 0

Definition at line 156 of file DevelopmentSettings.php.

◆ $wgDevelopmentWarnings

$wgDevelopmentWarnings = true

Debugging for MediaWiki.

Definition at line 44 of file DevelopmentSettings.php.

◆ $wgEnableJavaScriptTest

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

Definition at line 77 of file DevelopmentSettings.php.

◆ $wgEnableUploads

$wgEnableUploads = true

Definition at line 126 of file DevelopmentSettings.php.

◆ $wgForceDeferredUpdatesPreSend

$wgForceDeferredUpdatesPreSend = true

Definition at line 78 of file DevelopmentSettings.php.

◆ $wgLocalisationCacheConf [1/2]

global $wgLocalisationCacheConf

Definition at line 125 of file DevelopmentSettings.php.

◆ $wgLocalisationCacheConf [2/2]

$wgLocalisationCacheConf[ 'store'] = 'array'

Definition at line 134 of file DevelopmentSettings.php.

◆ $wgMaxArticleSize

$wgMaxArticleSize = 20

Definition at line 79 of file DevelopmentSettings.php.

◆ $wgParsoidSettings [1/3]

global $wgParsoidSettings

Definition at line 79 of file DevelopmentSettings.php.

◆ $wgParsoidSettings [2/3]

$wgParsoidSettings[ 'html2wtLimits'][ 'htmlSize'] = 100 * 1024

Definition at line 115 of file DevelopmentSettings.php.

◆ $wgParsoidSettings [3/3]

$wgParsoidSettings[ 'wt2htmlLimits'][ 'wikitextSize'] = 20 * 1024

Definition at line 114 of file DevelopmentSettings.php.

◆ $wgPasswordAttemptThrottle

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

Definition at line 78 of file DevelopmentSettings.php.

◆ $wgRateLimits

global $wgRateLimits

Make testing possible (or easier)

Definition at line 77 of file DevelopmentSettings.php.

◆ $wgRestAPIAdditionalRouteFiles [1/2]

global $wgRestAPIAdditionalRouteFiles

Definition at line 77 of file DevelopmentSettings.php.

◆ $wgRestAPIAdditionalRouteFiles [2/2]

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

Definition at line 95 of file DevelopmentSettings.php.

◆ $wgShowExceptionDetails

$wgShowExceptionDetails = true

Definition at line 44 of file DevelopmentSettings.php.

◆ $wgShowHostnames

$wgShowHostnames = true

Definition at line 44 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 125 of file DevelopmentSettings.php.

◆ $wgUsePigLatinVariant

$wgUsePigLatinVariant = true

Definition at line 126 of file DevelopmentSettings.php.

◆ $wgUseXssLanguage

$wgUseXssLanguage = true

Definition at line 151 of file DevelopmentSettings.php.

◆ $wgVisualEditorEnableWikitext

$wgVisualEditorEnableWikitext = true

Definition at line 127 of file DevelopmentSettings.php.

◆ $wgVueDevelopmentMode

$wgVueDevelopmentMode = true

Definition at line 118 of file DevelopmentSettings.php.