MediaWiki REL1_39
SetupDynamicConfig.php File Reference

Go to the source code of this file.

Variables

 $rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 )
 
 $wgCanonicalNamespaceNames = NamespaceInfo::CANONICAL_NAMES
 Definitions of the NS_ constants are in Defines.php.
 
 $wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' )
 
 $wgDefaultUserOptions ['rcdays']
 
if(! $wgEnableEmail) if(! $wgLocaltimezone) $wgDefaultUserOptions ['timecorrection'] = "System|$wgLocalTZoffset"
 
 $wgDefaultUserOptions ['watchlistdays']
 
if(count( $wgDummyLanguageCodes) !==0) $wgDummyLanguageCodes
 
 $wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgProhibitedFileExtensions ) )
 
 $wgGalleryOptions
 Default parameters for the "<gallery>" tag.
 
 $wgLockManagers []
 Initialise $wgLockManagers to include basic FS version.
 
if( $wgRightsIcon) if(isset($wgFooterIcons[ 'copyright'][ 'copyright']) &&$wgFooterIcons[ 'copyright'][ 'copyright']===[]) if(isset( $wgFooterIcons['poweredby']) &&isset( $wgFooterIcons['poweredby']['mediawiki']) && $wgFooterIcons['poweredby']['mediawiki']['src']===null) $wgNamespaceProtection [NS_MEDIAWIKI] = 'editinterface'
 Unconditional protection for NS_MEDIAWIKI since otherwise it's too easy for a sysadmin to set $wgNamespaceProtection incorrectly and leave the wiki insecure.
 
if( $wgLogos !==false &&isset( $wgLogos else ['1x'])) if($wgMainWANCache===false) if(isset( $wgFileBlacklist))
 

Variable Documentation

◆ $rcMaxAgeDays

$rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 )

Definition at line 188 of file SetupDynamicConfig.php.

◆ $wgCanonicalNamespaceNames

$wgCanonicalNamespaceNames = NamespaceInfo::CANONICAL_NAMES

Definitions of the NS_ constants are in Defines.php.

Access: internal

Definition at line 242 of file SetupDynamicConfig.php.

◆ $wgCookiePrefix

$wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' )

Definition at line 200 of file SetupDynamicConfig.php.

◆ $wgDefaultUserOptions [1/3]

$wgDefaultUserOptions[ 'rcdays']
Initial value:
= min(
ceil( $rcMaxAgeDays )
)
$wgDefaultUserOptions['rcdays']

Definition at line 190 of file SetupDynamicConfig.php.

◆ $wgDefaultUserOptions [2/3]

if(! $wgEnableEmail) if (! $wgLocaltimezone) $wgDefaultUserOptions[ 'timecorrection'] = "System|$wgLocalTZoffset"

Definition at line 236 of file SetupDynamicConfig.php.

◆ $wgDefaultUserOptions [3/3]

$wgDefaultUserOptions[ 'watchlistdays']
Initial value:
= min(
$wgDefaultUserOptions['watchlistdays'],
ceil( $rcMaxAgeDays )
)

Definition at line 194 of file SetupDynamicConfig.php.

◆ $wgDummyLanguageCodes

if (count($wgDummyLanguageCodes) !==0) $wgDummyLanguageCodes
Initial value:
= [
'qqq' => 'qqq',
'qqx' => 'qqx',
] + $wgExtraLanguageCodes + LanguageCode::getDeprecatedCodeMapping()
$wgExtraLanguageCodes
Config variable stub for the ExtraLanguageCodes setting, for use by phpdoc and IDEs.

Definition at line 252 of file SetupDynamicConfig.php.

◆ $wgFileExtensions

$wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgProhibitedFileExtensions ) )

Definition at line 50 of file SetupDynamicConfig.php.

◆ $wgGalleryOptions

$wgGalleryOptions
Initial value:
= [
'imagesPerRow' => 0,
'imageWidth' => 120,
'imageHeight' => 120,
'captionLength' => true,
'showBytes' => true,
'showDimensions' => true,
'mode' => 'traditional',
]

Default parameters for the "<gallery>" tag.

See also
docs/Configuration.md for description of the fields.

Definition at line 110 of file SetupDynamicConfig.php.

◆ $wgLockManagers

$wgLockManagers[]
Initial value:
= [
'name' => 'fsLockManager',
'class' => FSLockManager::class,
'lockDirectory' => "{$wgUploadDirectory}/lockdir",
]

Initialise $wgLockManagers to include basic FS version.

Definition at line 96 of file SetupDynamicConfig.php.

◆ $wgNamespaceProtection

if($wgRightsIcon) if(isset( $wgFooterIcons['copyright']['copyright']) && $wgFooterIcons['copyright']['copyright']===[]) if (isset($wgFooterIcons[ 'poweredby']) &&isset($wgFooterIcons[ 'poweredby'][ 'mediawiki']) &&$wgFooterIcons[ 'poweredby'][ 'mediawiki'][ 'src']===null) $wgNamespaceProtection[NS_MEDIAWIKI] = 'editinterface'

Unconditional protection for NS_MEDIAWIKI since otherwise it's too easy for a sysadmin to set $wgNamespaceProtection incorrectly and leave the wiki insecure.

Note that this is the definition of editinterface and it can be granted to all users if desired.

Definition at line 91 of file SetupDynamicConfig.php.

◆ else

if (isset($wgSlaveLagCritical)) else
Initial value:
{
$wgFileBlacklist = $wgProhibitedFileExtensions
$wgProhibitedFileExtensions
Config variable stub for the ProhibitedFileExtensions setting, for use by phpdoc and IDEs.

Definition at line 29 of file SetupDynamicConfig.php.