MediaWiki  1.28.0
Setup.php File Reference

Include most things that are needed to make MediaWiki work. More...

Go to the source code of this file.

Variables

if(!defined( 'MEDIAWIKI')) $fname = 'Setup.php'
 This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined. More...
 
 $messageMemc = wfGetMessageCacheStorage()
 
 $parserMemc = wfGetParserCacheStorage()
 
 $ps_default = Profiler::instance()->scopedProfileIn( $fname . '-defaults' )
 
 $ps_default2 = Profiler::instance()->scopedProfileIn( $fname . '-defaults2' )
 
 $ps_extensions = Profiler::instance()->scopedProfileIn( $fname . '-extensions' )
 
 $ps_globals = Profiler::instance()->scopedProfileIn( $fname . '-globals' )
 
 $ps_memcached = Profiler::instance()->scopedProfileIn( $fname . '-memcached' )
 
 $ps_misc = Profiler::instance()->scopedProfileIn( $fname . '-misc1' )
 
if(!is_object($wgAuth)) if($wgAuth
&&!$wgAuth instanceof
MediaWiki\Auth\AuthManagerAuthPlugin
$ps_session = Profiler::instance()->scopedProfileIn( $fname . '-session' )
 
 $ps_setup = Profiler::instance()->scopedProfileIn( $fname )
 
 $ps_validation = Profiler::instance()->scopedProfileIn( $fname . '-validation' )
 
 $rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 )
 
if($wgCanonicalServer===false$serverParts = wfParseUrl( $wgCanonicalServer )
 
 $wgCanonicalNamespaceNames
 Definitions of the NS_ constants are in Defines.php. More...
 
global $wgCommandLineMode
 
 $wgContLang = Language::factory( $wgLanguageCode )
 
if(is_array($wgExtraNamespaces)) $wgContLanguageCode = $wgLanguageCode
 
if($wgLocalInterwiki) if($wgSharedPrefix===false)
if($wgSharedSchema===false) if(!$wgCookiePrefix) 
$wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' )
 
if($wgRCFilterByAge) $wgDefaultUserOptions ['rcdays']
 
 $wgDefaultUserOptions ['watchlistdays']
 
if(is_null($wgLocalTZoffset)) $wgDefaultUserOptions ['timecorrection'] = "System|$wgLocalTZoffset"
 
 $wgEmailAuthentication = false
 
 $wgEnableUserEmail = false
 
 $wgEnotifFromEditor = false
 
 $wgEnotifImpersonal = false
 
 $wgEnotifMaxRecips = 0
 
 $wgEnotifMinorEdits = false
 
 $wgEnotifRevealEditorAddress = false
 
 $wgEnotifUseRealName = false
 
 $wgEnotifUserTalk = false
 
 $wgEnotifWatchlist = false
 
 $wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgFileBlacklist ) )
 
 $wgFullyInitialised = true
 
if($wgUseFileCache||$wgUseSquid) $wgHtml5 = true
 
 $wgInitialSessionId = null
 
 $wgJsMimeType = 'text/javascript'
 
 $wgLang = new StubUserLang
 
 $wgLockManagers []
 Initialise $wgLockManagers to include basic FS version. More...
 
 $wgMemc = wfGetMainCache()
 
if($wgMetaNamespace===false)
if($wgResourceLoaderMaxQueryLength===false
$wgMinUploadChunkSize
 
 $wgNamespaceAliases ['Image'] = NS_FILE
 The canonical names of namespaces 6 and 7 are, as of v1.14, "File" and "File_talk". More...
 
 $wgNamespaceAliases ['Image_talk'] = NS_FILE_TALK
 
if($wgScript===false) if($wgLoadScript===false)
if($wgArticlePath===false) if(!empty($wgActionPaths)&&!isset($wgActionPaths['view']))
if($wgResourceBasePath===null)
if($wgStylePath===false) if($wgLocalStylePath===false)
if($wgExtensionAssetsPath===false)
if($wgLogo===false) if($wgUploadPath===false)
if($wgUploadDirectory===false)
if($wgReadOnlyFile===false) if($wgFileCacheDirectory===false)
if($wgDeletedDirectory===false)
if($wgGitInfoCacheDirectory===false
&&$wgCacheDirectory!==false)
if($wgEnableParserCache===false)
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. More...
 
 $wgOut = RequestContext::getMain()->getOutput()
 
 $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], [ $wgParserConf ] )
 
if(!$wgDBerrorLogTZ) $wgRequest = RequestContext::getMain()->getRequest()
 
if($wgServerName!==false$wgServerName = $serverParts['host']
 
if($wgInvalidateCacheOnLocalSettingsChange)
if($wgNewUserLog) if($wgPageLanguageUseDB)
if($wgCookieSecure=== 'detect')
if($wgProfileOnly) if($wgMinimalPasswordLength!==false)
if($wgMaximalPasswordLength!==false)
if(!$wgSessionsInObjectCache
&&!$wgSessionsInMemcached) 
$wgSessionsInObjectCache = true
 
if($wgSkipSkin) $wgSkipSkins [] = 'fallback'
 
 $wgTitle = null
 
 $wgUseEnotif = false
 
 $wgUser = RequestContext::getMain()->getUser()
 
 $wgUserEmailUseReplyTo = false
 
 $wgUsersNotifiedOnAllChanges = []
 
if(!$wgEmergencyContact) if(!$wgPasswordSender)
if(!$wgNoReplyAddress) if($wgSecureLogin
&&substr($wgServer, 0, 2)!== '//') 
$wgVirtualRestConfig ['global']['domain'] = $wgCanonicalServer
 
 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml'
 
if($wgEnableEmail) else
 
const MW_SERVICE_BOOTSTRAP_COMPLETE ($wgSharedDB &&$wgSharedTables) 1
 
 NS_SPECIAL
 

Detailed Description

Include most things that are needed to make MediaWiki work.

This file is included by WebStart.php and doMaintenance.php so that both web and maintenance scripts share a final set up phase to include necessary files and create global object variables.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file Setup.php.

Variable Documentation

if (!defined( 'MEDIAWIKI')) $fname = 'Setup.php'

This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.

Definition at line 36 of file Setup.php.

Referenced by Article\__get(), Article\__set(), DumpTestCase\assertDumpStart(), DatabaseSqlite\attachDatabase(), Database\begin(), LBFactory\beginMasterChanges(), LoadBalancer\beginMasterChanges(), Maintenance\beginTransaction(), IndexPager\buildQueryInfo(), DatabaseTestHelper\checkFunctionName(), AjaxResponse\checkLastModified(), TextPassDumperDatabaseTest\checkpointHelper(), SectionProfiler\collateData(), LBFactory\commitAll(), LoadBalancer\commitAll(), LBFactory\commitAndWaitForReplication(), LBFactory\commitMasterChanges(), LoadBalancer\commitMasterChanges(), Maintenance\commitTransaction(), DatabaseMssql\deleteJoin(), DatabaseMysqlBase\deleteJoin(), Database\deleteJoin(), DatabaseSqlite\doBegin(), Database\doProfiledQuery(), IndexPager\doQuery(), DatabasePostgres\duplicateTableStructure(), DatabaseSqlite\duplicateTableStructure(), DatabaseMysqlBase\duplicateTableStructure(), DatabasePostgres\estimateRowCount(), DatabaseMysqlBase\estimateRowCount(), Database\estimateRowCount(), ConvertExtensionToRegistration\execute(), ResourceLoaderWikiModule\fetchTitleInfo(), LBFactory\flushReplicaSnapshots(), QueryPage\getCachedTimestamp(), SectionProfiler\getCallTreeLine(), SectionProfiler\getFunctionStats(), ProfilerXhprof\getFunctionStats(), Database\getScopedLockAndFlush(), DumpTestCase\gunzip(), Database\indexExists(), DatabasePostgres\indexInfo(), DatabaseSqlite\indexInfo(), DatabaseMysqlBase\indexInfo(), DatabaseSqlite\indexUnique(), DatabasePostgres\indexUnique(), DatabaseOracle\insert(), DatabasePostgres\insert(), Database\insert(), Title\invalidateCache(), ChangeTags\listExplicitlyDefinedTags(), DatabasePostgres\listTables(), DatabaseMysqlBase\listTables(), LocalFile\loadExtraFromDB(), LocalFile\loadFieldsWithTimestamp(), LocalFile\loadFromDB(), moveToExternal(), DatabasePostgres\nativeInsertSelect(), DatabaseTestHelper\nativeReplace(), Database\nativeReplace(), RecentChange\newFromConds(), XmlTypeCheck\newFromFilename(), ImportStreamSource\newFromUpload(), LocalFile\nextHistoryLine(), Database\onTransactionIdle(), Database\onTransactionPreCommitOrIdle(), Database\onTransactionResolution(), InfoAction\pageCounts(), ResourceLoaderWikiModule\preloadTitleInfo(), Block\purgeExpired(), Title\purgeExpiredRestrictions(), DatabaseTestHelper\query(), Database\query(), DatabasePostgres\queryIgnore(), DatabaseOracle\queryIgnore(), ContribsPager\reallyDoQuery(), ImageListPager\reallyDoQuery(), IndexPager\reallyDoQuery(), QueryPage\reallyDoQuery(), QueryPage\recache(), DatabaseMysqlBase\replace(), Database\replace(), DatabasePostgres\reportQueryError(), Database\reportQueryError(), resolveStub(), resolveStubs(), LBFactory\rollbackMasterChanges(), LoadBalancer\rollbackMasterChanges(), Maintenance\rollbackTransaction(), DatabaseMssql\select(), Database\select(), Database\selectField(), Database\selectFieldValues(), RandomPage\selectRandomPageFromDB(), SpecialRandomInCategory\selectRandomPageFromDB(), DatabaseOracle\selectRow(), Database\selectRow(), Database\selectRowCount(), DatabaseMssql\selectSQLText(), DatabasePostgres\selectSQLText(), StreamFile\send404Message(), HTTPFileStreamer\send404Message(), TransactionProfiler\setExpectation(), TransactionProfiler\setExpectations(), BaseDumpTest\setUpPrefetch(), TextPassDumperDatabaseTest\setUpStub(), splitFilename(), Database\startAtomic(), StreamFile\stream(), DatabaseTestHelper\tableExists(), DatabaseMysqlBase\tableExists(), Database\tableExists(), ChangeTags\tagUsageStatistics(), BackupDumperPageTest\testCurrentStubGzip(), BackupDumperPageTest\testCurrentStubPlain(), ExportDemoTest\testExportDemo(), BackupDumperPageTest\testFullStubPlain(), BackupDumperPageTest\testFullTextPlain(), BaseDumpTest\testPageMissAtEnd(), BackupDumperLoggerTest\testPlain(), BaseDumpTest\testRevisionMissAtEnd(), BaseDumpTest\testSequential(), BaseDumpTest\testSynchronizePageMiss(), BaseDumpTest\testSynchronizePageMissAtStart(), BaseDumpTest\testSynchronizeRevisionMissAtStart(), BaseDumpTest\testSynchronizeRevisionMissToPage(), BaseDumpTest\testSynchronizeRevisionMissToRevision(), GlobalTest\testWfMkdirParents(), BackupDumperLoggerTest\testXmlDumpsBackupUseCaseLogging(), Database\update(), WatchedItemStore\updateNotificationTimestamp(), DatabaseMysqlBase\upsert(), and Database\upsert().

$messageMemc = wfGetMessageCacheStorage()

Definition at line 692 of file Setup.php.

$parserMemc = wfGetParserCacheStorage()

Definition at line 693 of file Setup.php.

$ps_default = Profiler::instance()->scopedProfileIn( $fname . '-defaults' )

Definition at line 51 of file Setup.php.

$ps_default2 = Profiler::instance()->scopedProfileIn( $fname . '-defaults2' )

Definition at line 575 of file Setup.php.

$ps_extensions = Profiler::instance()->scopedProfileIn( $fname . '-extensions' )

Definition at line 829 of file Setup.php.

$ps_globals = Profiler::instance()->scopedProfileIn( $fname . '-globals' )

Definition at line 709 of file Setup.php.

$ps_memcached = Profiler::instance()->scopedProfileIn( $fname . '-memcached' )

Definition at line 689 of file Setup.php.

$ps_misc = Profiler::instance()->scopedProfileIn( $fname . '-misc1' )

Definition at line 635 of file Setup.php.

if (!is_object($wgAuth)) if ($wgAuth &&!$wgAuth instanceof MediaWiki\Auth\AuthManagerAuthPlugin) $ps_session = Profiler::instance()->scopedProfileIn( $fname . '-session' )

Definition at line 737 of file Setup.php.

$ps_setup = Profiler::instance()->scopedProfileIn( $fname )

Definition at line 37 of file Setup.php.

$ps_validation = Profiler::instance()->scopedProfileIn( $fname . '-validation' )

Definition at line 559 of file Setup.php.

$rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 )

Definition at line 265 of file Setup.php.

if ($wgCanonicalServer===false) $serverParts = wfParseUrl( $wgCanonicalServer )

Definition at line 582 of file Setup.php.

$wgCanonicalNamespaceNames
Initial value:
= [
NS_MEDIA => 'Media'
const NS_MEDIA
Definition: Defines.php:44

Definitions of the NS_ constants are in Defines.php.

Access:
private

Definition at line 379 of file Setup.php.

Referenced by MWNamespace\getCanonicalNamespaces(), and wfInstallerMain().

$wgContLang = Language::factory( $wgLanguageCode )

Definition at line 714 of file Setup.php.

if (is_array($wgExtraNamespaces)) $wgContLanguageCode = $wgLanguageCode
Todo:
UGLY UGLY

Definition at line 406 of file Setup.php.

if ($wgLocalInterwiki) if ($wgSharedPrefix===false) if ($wgSharedSchema===false) if (!$wgCookiePrefix) $wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' )
if ($wgRCFilterByAge) $wgDefaultUserOptions['rcdays']
Initial value:
= min(
ceil( $rcMaxAgeDays )
)
$rcMaxAgeDays
Definition: Setup.php:265
if($wgRCFilterByAge) $wgDefaultUserOptions['rcdays']
Definition: Setup.php:282

Definition at line 282 of file Setup.php.

Referenced by Preferences\getDateOptions(), User\getDefaultOptions(), and UserTest\testAnonOptions().

$wgDefaultUserOptions['watchlistdays']
Initial value:
= min(
$wgDefaultUserOptions['watchlistdays'],
ceil( $rcMaxAgeDays )
)
$rcMaxAgeDays
Definition: Setup.php:265
if($wgRCFilterByAge) $wgDefaultUserOptions['rcdays']
Definition: Setup.php:282

Definition at line 286 of file Setup.php.

if (is_null($wgLocalTZoffset)) $wgDefaultUserOptions['timecorrection'] = "System|$wgLocalTZoffset"

Definition at line 657 of file Setup.php.

$wgEmailAuthentication = false

Definition at line 332 of file Setup.php.

$wgEnableUserEmail = false

Definition at line 333 of file Setup.php.

$wgEnotifFromEditor = false

Definition at line 334 of file Setup.php.

$wgEnotifImpersonal = false

Definition at line 335 of file Setup.php.

$wgEnotifMaxRecips = 0

Definition at line 336 of file Setup.php.

$wgEnotifMinorEdits = false

Definition at line 337 of file Setup.php.

$wgEnotifRevealEditorAddress = false

Definition at line 338 of file Setup.php.

$wgEnotifUseRealName = false

Definition at line 339 of file Setup.php.

$wgEnotifUserTalk = false

Definition at line 340 of file Setup.php.

$wgEnotifWatchlist = false

Definition at line 341 of file Setup.php.

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

Definition at line 421 of file Setup.php.

$wgFullyInitialised = true

Definition at line 880 of file Setup.php.

Referenced by User\isSafeToLoad(), User\load(), and MWExceptionTest\testUseOutputPage().

if ($wgUseFileCache||$wgUseSquid) $wgHtml5 = true

Definition at line 416 of file Setup.php.

$wgInitialSessionId = null
$wgJsMimeType = 'text/javascript'

Definition at line 418 of file Setup.php.

$wgLang = new StubUserLang

Definition at line 811 of file Setup.php.

$wgLockManagers[]
Initial value:
= [
'name' => 'fsLockManager'

Initialise $wgLockManagers to include basic FS version.

Definition at line 168 of file Setup.php.

$wgMemc = wfGetMainCache()

Definition at line 691 of file Setup.php.

if ($wgMetaNamespace===false) if ($wgResourceLoaderMaxQueryLength===false) $wgMinUploadChunkSize
Initial value:
= min(
ini_get( 'post_max_size' ) ?: ini_get( 'hhvm.server.max_post_size' ),
PHP_INT_MAX
) ?: PHP_INT_MAX ) - 1024
)
wfShorthandToInteger($string= '', $default=-1)
Converts shorthand byte notation to integer form.
if($wgMetaNamespace===false) if($wgResourceLoaderMaxQueryLength===false) $wgMinUploadChunkSize
Definition: Setup.php:365
static getMaxUploadSize($forType=null)
Get the MediaWiki maximum uploaded file size for given type of upload, based on $wgMaxUploadSize.
static getMaxPhpUploadSize()
Get the PHP maximum uploaded file size, based on ini settings.

Definition at line 365 of file Setup.php.

$wgNamespaceAliases['Image'] = NS_FILE

The canonical names of namespaces 6 and 7 are, as of v1.14, "File" and "File_talk".

The old names "Image" and "Image_talk" are retained as aliases for backwards compatibility.

Definition at line 162 of file Setup.php.

$wgNamespaceAliases['Image_talk'] = NS_FILE_TALK

Definition at line 163 of file Setup.php.

if ($wgScript===false) if ($wgLoadScript===false) if ($wgArticlePath===false) if (!empty($wgActionPaths)&&!isset($wgActionPaths['view'])) if ($wgResourceBasePath===null) if ($wgStylePath===false) if ($wgLocalStylePath===false) if ($wgExtensionAssetsPath===false) if ($wgLogo===false) if ($wgUploadPath===false) if ($wgUploadDirectory===false) if ($wgReadOnlyFile===false) if ($wgFileCacheDirectory===false) if ($wgDeletedDirectory===false) if ($wgGitInfoCacheDirectory===false &&$wgCacheDirectory!==false) if ($wgEnableParserCache===false) 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 155 of file Setup.php.

Referenced by MWNamespace\getRestrictionLevels(), Title\isNamespaceProtected(), UploadFromUrlTestSuite\setUp(), and TitlePermissionTest\testSpecialsAndNSPermissions().

Parser $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], [ $wgParserConf ] )

Definition at line 821 of file Setup.php.

Referenced by WebInstaller\__construct(), OutputPage\addWikiTextTitle(), ApiQuerySiteinfo\appendExtensionTags(), ApiQuerySiteinfo\appendFunctionHooks(), PreprocessDump\checkOptions(), Preferences\cleanSignature(), ApiFeedWatchlist\createFeedItem(), ApiExpandTemplates\execute(), MaintenanceFormatInstallDoc\execute(), ApiParse\execute(), SpecialExpandTemplates\execute(), PPFuzzTest\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), EditPage\extractSectionTitle(), TextContent\fillParserOutput(), WikitextContent\fillParserOutput(), ApiParse\formatSummary(), SpecialExpandTemplates\generateHtml(), MessageCache\getParser(), SpecialVersion\getParserFunctionHooks(), SpecialVersion\getParserTags(), RawAction\getRawText(), WikitextContent\getSection(), PreprocessDump\getStripList(), EditPage\getSummaryPreview(), EditPage\internalAttemptSave(), EditPage\newSectionSummary(), SpecialListGroupRights\outputNamespaceProtectionInfo(), Installer\parse(), OutputPage\parse(), WikitextContent\preloadTransform(), JavaScriptContent\preSaveTransform(), CssContent\preSaveTransform(), WikitextContent\preSaveTransform(), Preferences\profilePreferences(), WikitextContent\replaceSection(), ParserTestRunner\requireFunctionHook(), ParserTestRunner\requireHook(), ParserTestRunner\requireTransparentHook(), UploadFromUrlTestSuite\setUp(), ParserMethodsTest\testCallParserFunction(), ParserMethodsTest\testGetSections(), ParserMethodsTest\testPreSaveTransform(), ParserMethodsTest\testRecursiveParse(), and Preferences\validateSignature().

if (!$wgDBerrorLogTZ) $wgRequest = RequestContext::getMain()->getRequest()

Definition at line 664 of file Setup.php.

Referenced by SpecialPageFactory\capturePath(), RecentChange\checkIPAddress(), FeedUtils\checkPurge(), EditPage\checkUnicodeCompliantBrowser(), LoginForm\clearCreateaccountToken(), LoginForm\clearLoginThrottle(), LoginForm\clearLoginToken(), ChannelFeed\contentType(), EditPage\displayPermissionsError(), UploadFromUrlTest\doApiRequest(), ApiTestCase\doApiRequest(), ApiTestCase\doApiRequestWithToken(), MediaWikiTestCase\doLightweightServiceReset(), EditPage\edit(), ApiEditPage\execute(), FileDeleteForm\execute(), LanguageConverter\findVariantLink(), WebInstaller\getAcceptLanguage(), EditPage\getContentObject(), LoginForm\getCreateaccountToken(), LanguageConverter\getHeaderVariant(), Title\getLocalURL(), LoginForm\getLoginToken(), ParserCache\getParserOutputKey(), User\getRequest(), AtomFeed\getSelfUrl(), MWExceptionHandler\getURL(), LanguageConverter\getURLVariant(), MWExceptionRenderer\googleSearchForm(), RequestContext\importScopedSession(), LoginForm\incrementLoginThrottle(), EditPage\internalAttemptSave(), ChangeTags\modifyDisplayQuery(), RecentChange\newLogEntry(), EditPage\previewOnOpen(), UploadFromUrlTestSuite\setUp(), FileDeleteForm\showForm(), MediaWikiTestCase\tearDown(), LanguageConverterTest\testGetPreferredVariantDefaultLanguageVsUrlVariant(), LanguageConverterTest\testGetPreferredVariantHeaderMulti(), LanguageConverterTest\testGetPreferredVariantHeaders(), LanguageConverterTest\testGetPreferredVariantHeaderUserVsUrl(), LanguageConverterTest\testGetPreferredVariantHeaderWeight(), LanguageConverterTest\testGetPreferredVariantHeaderWeight2(), OutputPage\transformCssMedia(), and wfInstallerMain().

if ($wgServerName!==false) $wgServerName = $serverParts['host']

Definition at line 587 of file Setup.php.

if ($wgInvalidateCacheOnLocalSettingsChange) if ($wgNewUserLog) if ($wgPageLanguageUseDB) if ($wgCookieSecure=== 'detect') if ($wgProfileOnly) if ($wgMinimalPasswordLength!==false) if ($wgMaximalPasswordLength!==false) if (!$wgSessionsInObjectCache &&!$wgSessionsInMemcached) $wgSessionsInObjectCache = true

Definition at line 477 of file Setup.php.

$wgSkipSkins[] = 'fallback'

Definition at line 296 of file Setup.php.

$wgTitle = null

Definition at line 826 of file Setup.php.

$wgUseEnotif = false
User $wgUser = RequestContext::getMain()->getUser()

Definition at line 806 of file Setup.php.

Referenced by UploadStash\__construct(), ApiMain\__construct(), Installer\__construct(), Revision\__construct(), ParserOptions\__construct(), LocalFileDeleteBatch\__construct(), LogPage\addEntry(), EditPage\attemptSave(), SpecialPageFactory\capturePath(), AjaxResponse\checkLastModified(), FeedUtils\checkPurge(), create_function(), Language\dateFormat(), ApiTestCase\doApiRequest(), FileDeleteForm\doDelete(), WikiPage\doDeleteArticleReal(), WikiPage\doEditContent(), ApiTestCase\doLogin(), EditPage\doPreviewParse(), EditPage\edit(), Undelete\execute(), DeleteDefaultMessages\execute(), ImportSiteScripts\execute(), CleanupSpam\execute(), EditCLI\execute(), TableCleanup\execute(), DeleteBatch\execute(), MoveBatch\execute(), FileDeleteForm\execute(), DeleteEqualMessages\execute(), PPFuzzTest\execute(), User\getBlockedStatus(), ApiQueryInfo\getBlockToken(), EditPage\getCheckboxes(), EditPage\getContentObject(), ApiQueryInfo\getDeleteToken(), EditPage\getEditPermissionErrors(), ApiQueryInfo\getEditToken(), ApiQueryInfo\getEmailToken(), LogEventsList\getExcludeClause(), GenderCache\getGenderOf(), ApiQueryInfo\getImportToken(), WebRequest\getLimitOffset(), ApiQueryInfo\getMoveToken(), Title\getNotificationTimestamp(), ApiQueryInfo\getOptionsToken(), MessageCache\getParserOptions(), ApiQueryRecentChanges\getPatrolToken(), LanguageConverter\getPreferredVariant(), EditPage\getPreloadedContent(), ApiQueryInfo\getProtectToken(), SpecialPageFactory\getRestrictedPages(), ApiQueryRevisions\getRollbackToken(), SpecialPageFactory\getUsablePages(), ApiQueryUsers\getUserrightsToken(), LanguageConverter\getUserVariant(), ApiQueryInfo\getWatchToken(), EditPage\handleStatus(), EditPage\importFormData(), RequestContext\importScopedSession(), EditPage\initialiseForm(), EditPage\internalAttemptSave(), Title\isValidMoveOperation(), UploadFromUrl\isValidRequest(), RecentChange\markPatrolled(), Title\moveTo(), Revision\newNullRevision(), WikiPage\prepareContentForEdit(), EditPage\previewOnOpen(), PatrolLog\record(), LocalFile\recordUpload(), LocalFile\recordUpload2(), DoubleRedirectJob\run(), EditPage\setHeaders(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), UploadFromUrlTestSuite\setUp(), EditPage\showDiff(), EditPage\showEditForm(), FileDeleteForm\showForm(), EditPage\showFormAfterText(), EditPage\showHeader(), EditPage\showIntro(), EditPage\showTextbox(), LanguageConverterTest\testGetPreferredVariantHeaderUserVsUrl(), LanguageConverterTest\testGetPreferredVariantUserOption(), LanguageConverterTest\testGetPreferredVariantUserOptionForForeignLanguage(), EditPage\tokenOk(), LogEventsList\typeAction(), PageArchive\undelete(), EditPage\updateWatchlist(), Language\userAdjust(), Title\userCan(), LogEventsList\userCanBitfield(), Revision\userCanBitfield(), Linker\userToolLinks(), and Title\validateFileMoveOperation().

$wgUserEmailUseReplyTo = false

Definition at line 344 of file Setup.php.

$wgUsersNotifiedOnAllChanges = []

Definition at line 345 of file Setup.php.

if (!$wgEmergencyContact) if (!$wgPasswordSender) if (!$wgNoReplyAddress) if ($wgSecureLogin &&substr($wgServer, 0, 2)!== '//') $wgVirtualRestConfig['global']['domain'] = $wgCanonicalServer

Definition at line 609 of file Setup.php.

$wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml'

Definition at line 417 of file Setup.php.

if (!defined( 'MW_NO_SESSION')&&!$wgCommandLineMode) else
Initial value:
{
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...

Definition at line 328 of file Setup.php.

const MW_SERVICE_BOOTSTRAP_COMPLETE($wgSharedDB &&$wgSharedTables) 1

Definition at line 524 of file Setup.php.

NS_SPECIAL
Initial value:
=> 'Special',
NS_TALK => 'Talk',
NS_USER => 'User',
NS_USER_TALK => 'User_talk',
NS_PROJECT => 'Project',
NS_PROJECT_TALK => 'Project_talk',
NS_FILE => 'File',
NS_FILE_TALK => 'File_talk',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
NS_TEMPLATE => 'Template',
NS_TEMPLATE_TALK => 'Template_talk',
NS_HELP => 'Help',
NS_HELP_TALK => 'Help_talk',
NS_CATEGORY => 'Category',
NS_CATEGORY_TALK => 'Category_talk',
]
const NS_TEMPLATE
Definition: Defines.php:66
const NS_PROJECT
Definition: Defines.php:60
const NS_MEDIAWIKI_TALK
Definition: Defines.php:65
const NS_PROJECT_TALK
Definition: Defines.php:61
const NS_CATEGORY
Definition: Defines.php:70
const NS_FILE
Definition: Defines.php:62
const NS_FILE_TALK
Definition: Defines.php:63
const NS_MEDIAWIKI
Definition: Defines.php:64
const NS_CATEGORY_TALK
Definition: Defines.php:71
const NS_HELP
Definition: Defines.php:68
const NS_HELP_TALK
Definition: Defines.php:69
const NS_TALK
Definition: Defines.php:57
const NS_USER_TALK
Definition: Defines.php:59
const NS_TEMPLATE_TALK
Definition: Defines.php:67

Definition at line 381 of file Setup.php.