9use Wikimedia\AtEase\AtEase;
19if ( isset( $wgFileBlacklist ) ) {
24if ( isset( $wgMimeTypeBlacklist ) ) {
29if ( isset( $wgEnableUserEmailBlacklist ) ) {
34if ( isset( $wgShortPagesNamespaceBlacklist ) ) {
45 'RateLimit: The "emailuser" limit is deprecated, use "sendemail" instead.'
55 'RateLimit: The "changetag" limit is deprecated, use "changetags" instead.'
67 "{$wgStylePath}/common/images/",
68 "{$wgResourceBasePath}/resources/assets/licenses/",
90 "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png";
92 "$wgResourceBasePath/resources/assets/poweredby_mediawiki_132x47.png 1.5x, " .
93 "$wgResourceBasePath/resources/assets/poweredby_mediawiki_176x62.png 2x";
105 'name' =>
'fsLockManager',
106 'class' => FSLockManager::class,
107 'lockDirectory' =>
"{$wgUploadDirectory}/lockdir",
110 'name' =>
'nullLockManager',
111 'class' => NullLockManager::class,
119 'imageHeight' => 120,
120 'captionLength' =>
true,
122 'showDimensions' =>
true,
123 'mode' =>
'traditional',
138 'class' => ForeignDBRepo::class,
158 'class' => FileRepo::class,
172 'class' => ForeignAPIRepo::class,
173 'name' =>
'wikimediacommons',
174 'apibase' =>
'https://commons.wikimedia.org/w/api.php',
175 'url' =>
'https://upload.wikimedia.org/wikipedia/commons',
176 'thumbUrl' =>
'https://upload.wikimedia.org/wikipedia/commons/thumb',
178 'transformVia404' =>
true,
179 'fetchDescription' =>
true,
180 'descriptionCacheExpiry' => 43200,
181 'apiThumbCacheExpiry' => 0,
185 if ( !isset( $repo[
'directory'] ) && $repo[
'class'] === ForeignAPIRepo::class ) {
188 if ( !isset( $repo[
'backend'] ) ) {
189 $repo[
'backend'] = $repo[
'name'] .
'-backend';
236 'The Localtimezone setting must a valid timezone string or null. '
237 .
'It must not be an empty string or false.'
253 'Do not add to DummyLanguageCodes directly, ' .
254 'add to ExtraLanguageCodes instead.'
265foreach ( LanguageCode::getNonstandardLanguageCodeMapping() as $code => $bcp47 ) {
266 $bcp47 = strtolower( $bcp47 );
280if ( isset( $wgSlaveLagWarning ) ) {
284 $wgSettings->warning(
'SlaveLagWarning is no longer supported, ' .
285 'use DatabaseReplicaLagWarning instead!' );
292if ( isset( $wgSlaveLagCritical ) ) {
296 $wgSettings->warning(
'SlaveLagCritical is no longer supported, ' .
297 'use DatabaseReplicaLagCritical instead!' );
305 AtEase::suppressWarnings();
307 AtEase::restoreWarnings();
331 'class' => PageLangLogFormatter::class,
344if ( defined(
'MW_NO_SESSION' ) ) {
if(isset($wgRateLimits[ 'emailuser'])) if(isset( $wgRateLimits['changetag'])) $wgFileExtensions
$wgCanonicalNamespaceNames
Definitions of the NS_ constants are in Defines.php.
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]
if(count( $wgDummyLanguageCodes) !==0) $wgDummyLanguageCodes
$wgDefaultUserOptions['rcdays']
This class contains schema declarations for all configuration variables known to MediaWiki core.
$wgProhibitedFileExtensions
Config variable stub for the ProhibitedFileExtensions setting, for use by phpdoc and IDEs.
$wgRightsIcon
Config variable stub for the RightsIcon setting, for use by phpdoc and IDEs.
$wgCacheEpoch
Config variable stub for the CacheEpoch setting, for use by phpdoc and IDEs.
$wgSharedThumbnailScriptPath
Config variable stub for the SharedThumbnailScriptPath setting, for use by phpdoc and IDEs.
$wgEnotifWatchlist
Config variable stub for the EnotifWatchlist setting, for use by phpdoc and IDEs.
$wgDBuser
Config variable stub for the DBuser setting, for use by phpdoc and IDEs.
$wgEnotifMaxRecips
Config variable stub for the EnotifMaxRecips setting, for use by phpdoc and IDEs.
$wgEnotifUserTalk
Config variable stub for the EnotifUserTalk setting, for use by phpdoc and IDEs.
$wgPageLanguageUseDB
Config variable stub for the PageLanguageUseDB setting, for use by phpdoc and IDEs.
$wgUseInstantCommons
Config variable stub for the UseInstantCommons setting, for use by phpdoc and IDEs.
$wgEnableUserEmailMuteList
Config variable stub for the EnableUserEmailMuteList setting, for use by phpdoc and IDEs.
$wgBotPasswordsCluster
Config variable stub for the BotPasswordsCluster setting, for use by phpdoc and IDEs.
$wgHashedSharedUploadDirectory
Config variable stub for the HashedSharedUploadDirectory setting, for use by phpdoc and IDEs.
$wgGenerateThumbnailOnParse
Config variable stub for the GenerateThumbnailOnParse setting, for use by phpdoc and IDEs.
$wgRightsUrl
Config variable stub for the RightsUrl setting, for use by phpdoc and IDEs.
$wgEnableUserEmail
Config variable stub for the EnableUserEmail setting, for use by phpdoc and IDEs.
$wgLogNames
Config variable stub for the LogNames setting, for use by phpdoc and IDEs.
$wgSharedUploadPath
Config variable stub for the SharedUploadPath setting, for use by phpdoc and IDEs.
$wgInvalidateCacheOnLocalSettingsChange
Config variable stub for the InvalidateCacheOnLocalSettingsChange setting, for use by phpdoc and IDEs...
$wgBotPasswordsDatabase
Config variable stub for the BotPasswordsDatabase setting, for use by phpdoc and IDEs.
$wgDBtype
Config variable stub for the DBtype setting, for use by phpdoc and IDEs.
$wgUploadDirectory
Config variable stub for the UploadDirectory setting, for use by phpdoc and IDEs.
$wgLogTypes
Config variable stub for the LogTypes setting, for use by phpdoc and IDEs.
$wgShortPagesNamespaceExclusions
Config variable stub for the ShortPagesNamespaceExclusions setting, for use by phpdoc and IDEs.
$wgSharedUploadDirectory
Config variable stub for the SharedUploadDirectory setting, for use by phpdoc and IDEs.
$wgRightsText
Config variable stub for the RightsText setting, for use by phpdoc and IDEs.
$wgEnotifFromEditor
Config variable stub for the EnotifFromEditor setting, for use by phpdoc and IDEs.
$wgPageCreationLog
Config variable stub for the PageCreationLog setting, for use by phpdoc and IDEs.
$wgDatabaseReplicaLagCritical
Config variable stub for the DatabaseReplicaLagCritical setting, for use by phpdoc and IDEs.
$wgEnotifRevealEditorAddress
Config variable stub for the EnotifRevealEditorAddress setting, for use by phpdoc and IDEs.
$wgFooterIcons
Config variable stub for the FooterIcons setting, for use by phpdoc and IDEs.
$wgCacheSharedUploads
Config variable stub for the CacheSharedUploads setting, for use by phpdoc and IDEs.
$wgEnableEmail
Config variable stub for the EnableEmail setting, for use by phpdoc and IDEs.
$wgEnotifImpersonal
Config variable stub for the EnotifImpersonal setting, for use by phpdoc and IDEs.
$wgUseXssLanguage
Config variable stub for the UseXssLanguage setting, for use by phpdoc and IDEs.
$wgUsersNotifiedOnAllChanges
Config variable stub for the UsersNotifiedOnAllChanges setting, for use by phpdoc and IDEs.
$wgRCMaxAge
Config variable stub for the RCMaxAge setting, for use by phpdoc and IDEs.
$wgLocaltimezone
Config variable stub for the Localtimezone setting, for use by phpdoc and IDEs.
$wgUserEmailUseReplyTo
Config variable stub for the UserEmailUseReplyTo setting, for use by phpdoc and IDEs.
$wgGroupPermissions
Config variable stub for the GroupPermissions setting, for use by phpdoc and IDEs.
$wgVirtualDomainsMapping
Config variable stub for the VirtualDomainsMapping setting, for use by phpdoc and IDEs.
$wgLocalFileRepo
Config variable stub for the LocalFileRepo setting, for use by phpdoc and IDEs.
$wgAllowHTMLEmail
Config variable stub for the AllowHTMLEmail setting, for use by phpdoc and IDEs.
$wgSharedUploadDBname
Config variable stub for the SharedUploadDBname setting, for use by phpdoc and IDEs.
$wgLogos
Config variable stub for the Logos setting, for use by phpdoc and IDEs.
$wgForeignFileRepos
Config variable stub for the ForeignFileRepos setting, for use by phpdoc and IDEs.
$wgRepositoryBaseUrl
Config variable stub for the RepositoryBaseUrl setting, for use by phpdoc and IDEs.
$wgLogHeaders
Config variable stub for the LogHeaders setting, for use by phpdoc and IDEs.
$wgSharedUploadDBprefix
Config variable stub for the SharedUploadDBprefix setting, for use by phpdoc and IDEs.
$wgEnotifMinorEdits
Config variable stub for the EnotifMinorEdits setting, for use by phpdoc and IDEs.
$wgDebugDumpSql
Config variable stub for the DebugDumpSql setting, for use by phpdoc and IDEs.
$wgDatabaseReplicaLagWarning
Config variable stub for the DatabaseReplicaLagWarning setting, for use by phpdoc and IDEs.
$wgFetchCommonsDescriptions
Config variable stub for the FetchCommonsDescriptions setting, for use by phpdoc and IDEs.
$wgDBserver
Config variable stub for the DBserver setting, for use by phpdoc and IDEs.
$wgMimeTypeExclusions
Config variable stub for the MimeTypeExclusions setting, for use by phpdoc and IDEs.
$wgExtraLanguageCodes
Config variable stub for the ExtraLanguageCodes setting, for use by phpdoc and IDEs.
$wgEmailAuthentication
Config variable stub for the EmailAuthentication setting, for use by phpdoc and IDEs.
$wgLogo
Config variable stub for the Logo setting, for use by phpdoc and IDEs.
$wgLogActionsHandlers
Config variable stub for the LogActionsHandlers setting, for use by phpdoc and IDEs.
$wgRateLimits
Config variable stub for the RateLimits setting, for use by phpdoc and IDEs.
$wgPHPSessionHandling
Config variable stub for the PHPSessionHandling setting, for use by phpdoc and IDEs.
$wgUseSharedUploads
Config variable stub for the UseSharedUploads setting, for use by phpdoc and IDEs.
$wgDBpassword
Config variable stub for the DBpassword setting, for use by phpdoc and IDEs.
$wgEnotifUseRealName
Config variable stub for the EnotifUseRealName setting, for use by phpdoc and IDEs.
$wgNewUserLog
Config variable stub for the NewUserLog setting, for use by phpdoc and IDEs.