MediaWiki master
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
 
if(isset($wgRateLimits[ 'emailuser'])) if(isset( $wgRateLimits['changetag'])) $wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgProhibitedFileExtensions ) )
 
 $wgGalleryOptions
 
 $wgLocalFileRepo ['deletedDir'] = $wgDeletedDirectory
 
 $wgLocalFileRepo ['deletedHashLevels'] = ( $wgHashedUploadDirectory ? 3 : 0 )
 
 $wgLocalFileRepo ['directory'] = $wgUploadDirectory
 
 $wgLocalFileRepo ['favicon'] = $wgFavicon
 
 $wgLocalFileRepo ['hashLevels'] = ( $wgHashedUploadDirectory ? 2 : 0 )
 
 $wgLocalFileRepo ['reserializeMetadata'] = $wgUpdateCompatibleMetadata
 
 $wgLocalFileRepo ['scriptDirUrl'] = $wgScriptPath
 
 $wgLocalFileRepo ['thumbScriptUrl'] = $wgThumbnailScriptPath
 
 $wgLocalFileRepo ['transformVia404'] = !$wgGenerateThumbnailOnParse
 
 $wgLocalFileRepo ['updateCompatibleMetadata'] = $wgUpdateCompatibleMetadata
 
 $wgLocalFileRepo ['url'] = ( $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath )
 
 $wgLockManagers []
 
if( $wgRightsIcon) if(isset($wgFooterIcons[ 'copyright'][ 'copyright']) &&$wgFooterIcons[ 'copyright'][ 'copyright']===[]) if(isset( $wgFooterIcons['poweredby']) &&isset( $wgFooterIcons['poweredby']['mediawiki']) &&is_array( $wgFooterIcons['poweredby']['mediawiki']) && $wgFooterIcons['poweredby']['mediawiki']['src']===null) $wgNamespaceProtection [NS_MEDIAWIKI] = 'editinterface'
 
if($wgLogos !==false &&isset($wgLogos else [ '1x'])) if(isset( $wgFileBlacklist))
 

Variable Documentation

◆ $rcMaxAgeDays

$rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 )

Definition at line 214 of file SetupDynamicConfig.php.

◆ $wgCanonicalNamespaceNames

$wgCanonicalNamespaceNames = NamespaceInfo::CANONICAL_NAMES

Definitions of the NS_ constants are in Defines.php.

Access: internal

Definition at line 266 of file SetupDynamicConfig.php.

◆ $wgCookiePrefix

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

Definition at line 226 of file SetupDynamicConfig.php.

◆ $wgDefaultUserOptions [1/3]

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

Definition at line 216 of file SetupDynamicConfig.php.

◆ $wgDefaultUserOptions [2/3]

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

Definition at line 260 of file SetupDynamicConfig.php.

◆ $wgDefaultUserOptions [3/3]

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

Definition at line 220 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 276 of file SetupDynamicConfig.php.

◆ $wgFileExtensions

if(isset( $wgRateLimits['emailuser'])) if (isset($wgRateLimits[ 'changetag'])) $wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgProhibitedFileExtensions ) )

Definition at line 62 of file SetupDynamicConfig.php.

◆ $wgGalleryOptions

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

Definition at line 124 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [1/11]

$wgLocalFileRepo[ 'deletedDir'] = $wgDeletedDirectory

Definition at line 141 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [2/11]

$wgLocalFileRepo[ 'deletedHashLevels'] = ( $wgHashedUploadDirectory ? 3 : 0 )

Definition at line 142 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [3/11]

$wgLocalFileRepo[ 'directory'] = $wgUploadDirectory

Definition at line 134 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [4/11]

$wgLocalFileRepo[ 'favicon'] = $wgFavicon

Definition at line 136 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [5/11]

$wgLocalFileRepo[ 'hashLevels'] = ( $wgHashedUploadDirectory ? 2 : 0 )

Definition at line 138 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [6/11]

$wgLocalFileRepo[ 'reserializeMetadata'] = $wgUpdateCompatibleMetadata

Definition at line 144 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [7/11]

$wgLocalFileRepo[ 'scriptDirUrl'] = $wgScriptPath

Definition at line 135 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [8/11]

$wgLocalFileRepo[ 'thumbScriptUrl'] = $wgThumbnailScriptPath

Definition at line 139 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [9/11]

$wgLocalFileRepo[ 'transformVia404'] = !$wgGenerateThumbnailOnParse

Definition at line 140 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [10/11]

$wgLocalFileRepo[ 'updateCompatibleMetadata'] = $wgUpdateCompatibleMetadata

Definition at line 143 of file SetupDynamicConfig.php.

◆ $wgLocalFileRepo [11/11]

$wgLocalFileRepo[ 'url'] = ( $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath )

Definition at line 137 of file SetupDynamicConfig.php.

◆ $wgLockManagers

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

Definition at line 112 of file SetupDynamicConfig.php.

◆ $wgNamespaceProtection

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

Definition at line 109 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 27 of file SetupDynamicConfig.php.