MediaWiki REL1_33
|
Include most things that are needed to make MediaWiki work. More...
Go to the source code of this file.
Variables | |
$cpPosInfo | |
if(defined( 'MW_SETUP_CALLBACK')) | $fname = 'Setup.php' |
Customization point after all loading (constants, functions, classes, DefaultSettings, LocalSettings). | |
$messageMemc = wfGetMessageCacheStorage() | |
$ps_default = Profiler::instance()->scopedProfileIn( $fname . '-defaults' ) | |
foreach([ 'wgArticlePath', 'wgVariantArticlePath'] as $varName) | $ps_default2 = Profiler::instance()->scopedProfileIn( $fname . '-defaults2' ) |
$ps_extensions = Profiler::instance()->scopedProfileIn( $fname . '-extensions' ) | |
$ps_globals = Profiler::instance()->scopedProfileIn( $fname . '-globals' ) | |
$ps_misc = Profiler::instance()->scopedProfileIn( $fname . '-misc' ) | |
$ps_setup = Profiler::instance()->scopedProfileIn( $fname ) | |
$rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 ) | |
if( $wgCanonicalServer===false) | $serverParts = wfParseUrl( $wgCanonicalServer ) |
$wgCanonicalNamespaceNames | |
Definitions of the NS_ constants are in Defines.php. | |
global | $wgCommandLineMode |
$wgContLang = MediaWikiServices::getInstance()->getContentLanguage() | |
foreach(LanguageCode::getNonstandardLanguageCodeMapping() as $code=> $bcp47) | $wgContLanguageCode = $wgLanguageCode |
if($wgLocalInterwiki) if( $wgSharedPrefix===false) if($wgSharedSchema===false) if(! $wgCookiePrefix) | $wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' ) |
if( $wgRCFilterByAge) | $wgDefaultUserOptions ['rcdays'] |
if(is_null( $wgLocalTZoffset)) | $wgDefaultUserOptions ['timecorrection'] = "System|$wgLocalTZoffset" |
$wgDefaultUserOptions ['watchlistdays'] | |
if(is_array($wgExtraNamespaces)) if(count( $wgDummyLanguageCodes) !==0) | $wgDummyLanguageCodes |
$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 ) ) | |
foreach( $wgExtensionFunctions as $func) if(!defined('MW_NO_SESSION') &&! $wgCommandLineMode) if(! $wgCommandLineMode) | $wgFullyInitialised = true |
$wgGalleryOptions | |
Default parameters for the "<gallery>" tag. | |
if( $wgUseFileCache|| $wgUseSquid) | $wgHtml5 = true |
$wgInitialSessionId = null | |
$wgJsMimeType = 'text/javascript' | |
$wgLang = new StubUserLang | |
$wgLockManagers [] | |
Initialise $wgLockManagers to include basic FS version. | |
$wgMemc = ObjectCache::getLocalClusterInstance() | |
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". | |
$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( $wgRightsIcon) if(isset($wgFooterIcons | $wgNamespaceProtection [ 'copyright'][ 'copyright']) &&$wgFooterIcons[ 'copyright'][ 'copyright']===[]) if(isset( $wgFooterIcons['poweredby']) &&isset( $wgFooterIcons['poweredby']['mediawiki']) && $wgFooterIcons['poweredby']['mediawiki']['src']===null)[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. | |
$wgOut = RequestContext::getMain()->getOutput() | |
$wgParser | |
if(! $wgDBerrorLogTZ) | $wgRequest = RequestContext::getMain()->getRequest() |
if(!defined( 'MEDIAWIKI')) | $wgScopeTest = 'MediaWiki Setup.php scope test' |
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined. | |
if( $wgServerName !==false) | $wgServerName = $serverParts['host'] |
if( $wgSkipSkin) | $wgSkipSkins [] = 'fallback' |
$wgTitle = null | |
$wgUseEnotif = false | |
$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(defined( 'MW_CONFIG_CALLBACK')) | else |
Load LocalSettings.php. | |
if (ini_get('mbstring.func_overload')) | |
Pre-config setup: Before loading LocalSettings.php. | |
const | MW_SERVICE_BOOTSTRAP_COMPLETE ( $wgSharedDB && $wgSharedTables) 1 |
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.
$cpPosInfo |
if (defined('MW_SETUP_CALLBACK')) $fname = 'Setup.php' |
Customization point after all loading (constants, functions, classes, DefaultSettings, LocalSettings).
Specifically, this is before usage of settings, before instantiation of Profiler (and other singletons), and before any setup functions or hooks run. Main setup
Definition at line 123 of file Setup.php.
Referenced by MWCallableUpdate\__construct(), AtomicSectionUpdate\__construct(), Article\__get(), Article\__set(), User\addToDatabase(), MediaWiki\Tests\Maintenance\DumpTestCase\assertDumpSchema(), MediaWiki\Tests\Maintenance\DumpAsserter\assertDumpStart(), Wikimedia\Rdbms\DatabaseSqlite\attachDatabase(), Wikimedia\Rdbms\Database\begin(), Wikimedia\Rdbms\LBFactory\beginMasterChanges(), Wikimedia\Rdbms\LoadBalancer\beginMasterChanges(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\beginPrimaryAuthentication(), Maintenance\beginTransaction(), IndexPager\buildQueryInfo(), RangeChronologicalPager\buildQueryInfo(), ActiveUsersPager\buildQueryInfo(), Wikimedia\Rdbms\Database\buildSelectSubquery(), Hooks\callHook(), Wikimedia\Rdbms\Database\cancelAtomic(), DatabaseTestHelper\checkFunctionName(), AjaxResponse\checkLastModified(), PopulateArchiveRevId\checkMysqlAutoIncrementBug(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\checkpointHelper(), Wikimedia\Rdbms\LoadBalancer\closeAll(), SectionProfiler\collateData(), Wikimedia\Rdbms\Database\commit(), Wikimedia\Rdbms\LoadBalancer\commitAll(), Wikimedia\Rdbms\LBFactory\commitAll(), Wikimedia\Rdbms\LBFactory\commitAndWaitForReplication(), Wikimedia\Rdbms\LoadBalancer\commitMasterChanges(), Wikimedia\Rdbms\LBFactory\commitMasterChanges(), Maintenance\commitTransaction(), User\createNew(), DatabaseOracle\delete(), Wikimedia\Rdbms\Database\delete(), Wikimedia\Rdbms\DatabaseMssql\delete(), Wikimedia\Rdbms\Database\deleteJoin(), Wikimedia\Rdbms\DatabaseMssql\deleteJoin(), Wikimedia\Rdbms\DatabaseMysqlBase\deleteJoin(), Wikimedia\Rdbms\Database\doAtomicSection(), JobQueueDB\doBatchPush(), Wikimedia\Rdbms\Database\doBegin(), Wikimedia\Rdbms\DatabaseSqlite\doBegin(), Wikimedia\Rdbms\Database\doCommit(), IndexPager\doQuery(), Wikimedia\Rdbms\Database\doReleaseSavepoint(), Wikimedia\Rdbms\Database\doRollback(), Wikimedia\Rdbms\Database\doRollbackToSavepoint(), Wikimedia\Rdbms\DatabaseMssql\doRollbackToSavepoint(), Wikimedia\Rdbms\Database\doSavepoint(), Wikimedia\Rdbms\DatabaseMssql\doSavepoint(), DatabasePostgresTest\doTestInsertIgnore(), DatabasePostgresTest\doTestInsertSelectIgnore(), UserEditCountUpdate\doUpdate(), Wikimedia\Rdbms\DatabaseMysqlBase\duplicateTableStructure(), Wikimedia\Rdbms\DatabasePostgres\duplicateTableStructure(), Wikimedia\Rdbms\DatabaseSqlite\duplicateTableStructure(), RollbackAction\enableTransactionalTimelimit(), Wikimedia\Rdbms\Database\endAtomic(), Wikimedia\Rdbms\DatabaseMssql\estimateRowCount(), Wikimedia\Rdbms\DatabaseMysqlBase\estimateRowCount(), Wikimedia\Rdbms\DatabasePostgres\estimateRowCount(), ApiQueryUserContribs\execute(), ApiRollback\execute(), ConvertExtensionToRegistration\execute(), ResourceLoaderWikiModule\fetchTitleInfo(), Wikimedia\Rdbms\LoadBalancer\flushMasterSnapshots(), Wikimedia\Rdbms\LBFactory\flushReplicaSnapshots(), Wikimedia\Rdbms\LoadBalancer\flushReplicaSnapshots(), Wikimedia\Rdbms\Database\flushSnapshot(), QueryPage\getCachedTimestamp(), SectionProfiler\getCallTreeLine(), SpamBlacklist\getCurrentLinks(), File\getDescriptionText(), ForeignDBFile\getDescriptionText(), ProfilerXhprof\getFunctionStats(), SectionProfiler\getFunctionStats(), GadgetDefinitionNamespaceRepo\getGadgetIds(), Wikimedia\Rdbms\DatabaseMysqlBase\getMasterServerInfo(), MediaWiki\Storage\NameTableStore\getName(), AtomicSectionUpdate\getOrigin(), MWCallableUpdate\getOrigin(), ActiveUsersPager\getQueryInfo(), Wikimedia\Rdbms\Database\getScopedLockAndFlush(), Wikimedia\Rdbms\DatabaseMysqlBase\getServerGTIDs(), Wikimedia\Rdbms\DatabaseMysqlBase\getServerId(), Wikimedia\Rdbms\DatabaseMysqlBase\getServerRoleStatus(), MediaWiki\Tests\Maintenance\DumpTestCase\gunzip(), Wikimedia\Rdbms\Database\indexExists(), Wikimedia\Rdbms\DatabaseMssql\indexInfo(), Wikimedia\Rdbms\DatabaseMysqlBase\indexInfo(), Wikimedia\Rdbms\DatabasePostgres\indexInfo(), Wikimedia\Rdbms\DatabaseSqlite\indexInfo(), Wikimedia\Rdbms\DatabasePostgres\indexUnique(), Wikimedia\Rdbms\DatabaseSqlite\indexUnique(), DatabaseOracle\insert(), Wikimedia\Rdbms\Database\insert(), Wikimedia\Rdbms\DatabaseSqlite\insert(), Wikimedia\Rdbms\DatabasePostgres\insert(), MediaWiki\Revision\RevisionStore\insertRevisionOn(), MediaWiki\Revision\RevisionStore\insertRevisionRowOn(), Wikimedia\Rdbms\Database\insertSelect(), Parser\interwikiTransclude(), Title\invalidateCache(), PurgeJobUtils\invalidatePages(), ChangeTags\listExplicitlyDefinedTags(), Wikimedia\Rdbms\DatabaseMysqlBase\listTables(), Wikimedia\Rdbms\DatabasePostgres\listTables(), MediaWiki\Interwiki\ClassicInterwikiLookup\load(), MessageCache\loadCachedMessagePageEntry(), LocalFile\loadExtraFieldsWithTimestamp(), LocalFile\loadExtraFromDB(), LocalFile\loadFromDB(), Title\loadRestrictions(), BagOStuff\lock(), ProfilerOutputDb\log(), moveToExternal(), Wikimedia\Rdbms\Database\nativeInsertSelect(), Wikimedia\Rdbms\DatabaseMssql\nativeInsertSelect(), Wikimedia\Rdbms\DatabasePostgres\nativeInsertSelect(), Wikimedia\Rdbms\Database\nativeReplace(), DatabaseTestHelper\nativeReplace(), RecentChange\newFromConds(), XmlTypeCheck\newFromFilename(), ImportStreamSource\newFromUpload(), LocalFile\nextHistoryLine(), Wikimedia\Rdbms\Database\nonNativeInsertSelect(), SiteStats\numberingroup(), Wikimedia\Rdbms\Database\onAtomicSectionCancel(), ComposerVendorHtaccessCreator\onEvent(), Wikimedia\Rdbms\Database\onTransactionCommitOrIdle(), Wikimedia\Rdbms\Database\onTransactionIdle(), Wikimedia\Rdbms\DBConnRef\onTransactionIdle(), Wikimedia\Rdbms\Database\onTransactionPreCommitOrIdle(), Wikimedia\Rdbms\Database\onTransactionResolution(), InfoAction\pageCounts(), SiteStats\pagesInNs(), ApiStashEdit\parseAndStash(), ResourceLoaderWikiModule\preloadTitleInfo(), Block\purgeExpired(), Title\purgeExpiredRestrictions(), DatabaseTestHelper\query(), Wikimedia\Rdbms\Database\query(), Wikimedia\Rdbms\DBConnRef\query(), DatabaseOracle\queryIgnore(), Installer\readExtension(), QueryPage\reallyDoQuery(), ShortPagesPage\reallyDoQuery(), IndexPager\reallyDoQuery(), ContribsPager\reallyDoQuery(), ImageListPager\reallyDoQuery(), PopulateArchiveRevId\reassignArRevIds(), QueryPage\recache(), LocalFile\recordUpload2(), Wikimedia\Rdbms\TransactionProfiler\redefineExpectations(), RenameuserSQL\rename(), Wikimedia\Rdbms\Database\replace(), Wikimedia\Rdbms\DatabaseMysqlBase\replace(), Wikimedia\Rdbms\DatabaseSqlite\replace(), Wikimedia\Rdbms\Database\replaceLostConnection(), Wikimedia\Rdbms\DatabasePostgres\resetSequenceForTable(), Wikimedia\Rdbms\DatabaseSqlite\resetSequenceForTable(), resolveStub(), resolveStubs(), MediaWiki\Storage\NameTableStore\retryStore(), Wikimedia\Rdbms\Database\rollback(), Wikimedia\Rdbms\LBFactory\rollbackMasterChanges(), Wikimedia\Rdbms\LoadBalancer\rollbackMasterChanges(), Maintenance\rollbackTransaction(), Wikimedia\Rdbms\LoadBalancer\runMasterTransactionIdleCallbacks(), Hooks\runWithoutAbort(), User\saveSettings(), Wikimedia\Rdbms\DatabaseMssql\select(), SpecialRandomInCategory\selectRandomPageFromDB(), RandomPage\selectRandomPageFromDB(), DatabaseOracle\selectRow(), Wikimedia\Rdbms\DatabaseMssql\selectSQLText(), Wikimedia\Rdbms\DatabasePostgres\selectSQLText(), HTTPFileStreamer\send404Message(), StreamFile\send404Message(), Wikimedia\Rdbms\TransactionProfiler\setExpectation(), Wikimedia\Rdbms\TransactionProfiler\setExpectations(), MediaWiki\Tests\Maintenance\BaseDumpTest\setUpPrefetch(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\setUpStub(), Wikimedia\Rdbms\Database\sourceFile(), Wikimedia\Rdbms\Database\sourceStream(), Wikimedia\Rdbms\Database\startAtomic(), MediaWiki\Storage\NameTableStore\store(), StreamFile\stream(), Wikimedia\Rdbms\DatabaseMysqlBase\tableExists(), DatabaseTestHelper\tableExists(), DatabaseSQLTest\testAtomicSections(), DatabaseSQLTest\testAtomicSectionsCallbackCancellation(), MediaWiki\Tests\Maintenance\BackupDumperPageTest\testCurrentStubGzip(), MediaWiki\Tests\Maintenance\BackupDumperPageTest\testCurrentStubPlain(), ExportDemoTest\testExportDemo(), MediaWiki\Tests\Maintenance\BackupDumperPageTest\testFullStubPlain(), MediaWiki\Tests\Maintenance\BackupDumperPageTest\testFullTextPlain(), MediaWiki\Tests\Maintenance\BaseDumpTest\testPageMissAtEnd(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest\testPlain(), DatabaseSQLTest\testPrematureClose1(), DatabaseSQLTest\testPrematureClose2(), MediaWiki\Tests\Maintenance\BaseDumpTest\testRevisionMissAtEnd(), MediaWiki\Tests\Maintenance\BaseDumpTest\testSequential(), MediaWiki\Tests\Maintenance\BaseDumpTest\testSynchronizePageMiss(), MediaWiki\Tests\Maintenance\BaseDumpTest\testSynchronizePageMissAtStart(), MediaWiki\Tests\Maintenance\BaseDumpTest\testSynchronizeRevisionMissAtStart(), MediaWiki\Tests\Maintenance\BaseDumpTest\testSynchronizeRevisionMissToPage(), MediaWiki\Tests\Maintenance\BaseDumpTest\testSynchronizeRevisionMissToRevision(), MediaWiki\Tests\Storage\NameTableStoreTest\testTransactionDoubleRollback(), GlobalTest\testWfMkdirParents(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest\testXmlDumpsBackupUseCaseLogging(), Wikimedia\Rdbms\Database\unionConditionPermutations(), Wikimedia\Rdbms\Database\update(), WatchedItemStore\updateNotificationTimestamp(), ChangeTags\updateTags(), Wikimedia\Rdbms\Database\upsert(), and Wikimedia\Rdbms\DatabaseMysqlBase\upsert().
$messageMemc = wfGetMessageCacheStorage() |
Definition at line 769 of file Setup.php.
Referenced by RebuildMessages\execute(), TitleBlacklist\getHttp(), BaseBlacklist\getHttpText(), and UploadFromUrlTestSuite\setUp().
$ps_default = Profiler::instance()->scopedProfileIn( $fname . '-defaults' ) |
foreach (['wgArticlePath', 'wgVariantArticlePath'] as $varName) $ps_default2 = Profiler::instance()->scopedProfileIn( $fname . '-defaults2' ) |
$ps_extensions = Profiler::instance()->scopedProfileIn( $fname . '-extensions' ) |
$ps_globals = Profiler::instance()->scopedProfileIn( $fname . '-globals' ) |
$ps_misc = Profiler::instance()->scopedProfileIn( $fname . '-misc' ) |
$ps_setup = Profiler::instance()->scopedProfileIn( $fname ) |
if ($wgCanonicalServer===false) $serverParts = wfParseUrl( $wgCanonicalServer ) |
$wgCanonicalNamespaceNames |
Definitions of the NS_ constants are in Defines.php.
Definition at line 473 of file Setup.php.
Referenced by MWNamespace\getCanonicalNamespaces(), and wfInstallerMain().
Language $wgContLang = MediaWikiServices::getInstance()->getContentLanguage() |
Definition at line 790 of file Setup.php.
Referenced by CiteCSSFileModule\__construct(), CliInstaller\__construct(), CategoryTree\createCountString(), CategoryTree\decodeNamespaces(), SpecialRenameuser\execute(), SpecialCiteThisPage\getContentText(), ApiCategoryTree\getHTML(), InputBox\getSearchForm(), BaseBlacklist\getTypeFromTitle(), Cite\linkRef(), SpecialReplaceText\namespaceTables(), SpecialInterwiki\onSubmit(), Cite\referencesFormatEntryNumericBacklinkLabel(), and WebInstaller\setupLanguage().
foreach (LanguageCode::getNonstandardLanguageCodeMapping() as $code=> $bcp47) $wgContLanguageCode = $wgLanguageCode |
Definition at line 519 of file Setup.php.
Referenced by SpecialCiteThisPage\getContentText(), and MessageCacheTest\testNoDBAccessContentLanguage().
if( $wgLocalInterwiki) if($wgSharedPrefix===false) if( $wgSharedSchema===false) if (! $wgCookiePrefix) $wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' ) |
if ($wgRCFilterByAge) $wgDefaultUserOptions[ 'rcdays'] |
if (is_null($wgLocalTZoffset)) $wgDefaultUserOptions[ 'timecorrection'] = "System|$wgLocalTZoffset" |
$wgDefaultUserOptions[ 'watchlistdays'] |
if(is_array( $wgExtraNamespaces)) if (count($wgDummyLanguageCodes) !==0) $wgDummyLanguageCodes |
$wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgFileBlacklist ) ) |
foreach($wgExtensionFunctions as $func) if(!defined( 'MW_NO_SESSION') &&! $wgCommandLineMode) if (! $wgCommandLineMode) $wgFullyInitialised = true |
Definition at line 929 of file Setup.php.
Referenced by User\isSafeToLoad(), User\load(), and MWExceptionTest\testUseOutputPage().
$wgGalleryOptions |
Default parameters for the "<gallery>" tag.
$wgInitialSessionId = null |
Definition at line 799 of file Setup.php.
Referenced by LoginSignupSpecialPage\hasSessionCookie().
Language $wgLang = new StubUserLang |
Definition at line 875 of file Setup.php.
Referenced by ApiMain\__construct(), PermissionsError\__construct(), CliInstaller\__construct(), ParserOptions\__construct(), LogPage\actionText(), SpecialEditWatchlist\buildTools(), MediaWiki\Special\SpecialPageFactory\capturePath(), MediaWiki\Permissions\PermissionManager\checkActionPermissions(), UploadBase\checkUnwantedFileExtensions(), Installer\envCheckDB(), ChangesFeed\execute(), LocalFileRestoreBatch\execute(), WebInstallerLanguage\execute(), WebInstallerOptions\execute(), UpdateMediaWiki\execute(), SpecialReplaceText\extractContext(), StubUserLang\findVariantLink(), Linker\formatAutocomments(), FeedUtils\formatDiffRow(), SpecialVersion\getCopyrightAndAuthorList(), User\getDatePreference(), File\getDescriptionText(), ForeignDBFile\getDescriptionText(), ReCaptchaNoCaptcha\getFormInformation(), MediaHandler\getGeneralShortDesc(), WebInstallerOutput\getLanguage(), ImageHandler\getLongDesc(), SvgHandler\getLongDesc(), GIFHandler\getLongDesc(), PNGHandler\getLongDesc(), Title\getPageLanguage(), ContentHandler\getPageLanguage(), Title\getPageViewLanguage(), EditPage\getPreviewLimitReport(), ImageHandler\getShortDesc(), SpecialVersion\getVersionLinkedGit(), WebInstallerOptions\makeScreenshotsLink(), Xml\monthSelector(), Html\namespaceSelectorOptions(), User\newFatalPermissionDeniedStatus(), SpecialReplaceText\pageListForm(), FileDeleteForm\prepareMessage(), XmlTest\provideMonthSelector(), User\sendConfirmationMail(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), UploadFromUrlTestSuite\setUp(), WebInstaller\setupLanguage(), LogFormatterTest\testLogParamsTypeNumber(), ParserOptionsTest\testNewCanonical(), ApiMainTest\testUselang(), MediaWiki\Tests\Permissions\PermissionManagerTest\testUserBlock(), TitlePermissionTest\testUserBlock(), MediaWiki\Tests\Permissions\PermissionManagerTest\testUserBlockAction(), TitlePermissionTest\testUserBlockAction(), ForeignAPIFile\transform(), MWException\useMessageCache(), Linker\userToolLinks(), wfGetLangObj(), and wfInstallerMain().
$wgLockManagers[] |
if( $wgMetaNamespace===false) if ($wgResourceLoaderMaxQueryLength===false) $wgMinUploadChunkSize |
$wgNamespaceAliases[ 'Image'] = NS_FILE |
$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($wgRightsIcon) if(isset( $wgFooterIcons $wgNamespaceProtection['copyright']['copyright']) && $wgFooterIcons['copyright']['copyright']===[]) if (isset($wgFooterIcons[ 'poweredby']) &&isset($wgFooterIcons[ 'poweredby'][ 'mediawiki']) &&$wgFooterIcons[ 'poweredby'][ 'mediawiki'][ 'src']===null)[NS_MEDIAWIKI] = 'editinterface' |
OutputPage $wgOut = RequestContext::getMain()->getOutput() |
Definition at line 880 of file Setup.php.
Referenced by MediaWiki\Special\SpecialPageFactory\capturePath(), FeedUtils\checkFeedOutput(), UploadBase\detectVirus(), FileDeleteForm\execute(), ChannelFeed\httpHeaders(), ChangesFeed\loadFromCache(), QuickTemplate\msgWiki(), GeSHi\parse_code(), BadRequestError\report(), ErrorPageError\report(), PermissionsError\report(), ThrottledError\report(), LocalFileLockError\report(), MWExceptionRenderer\reportHTML(), MWException\reportHTML(), FileDeleteForm\setHeaders(), UploadFromUrlTestSuite\setUp(), FileDeleteForm\showForm(), QuestyCaptcha\showHelp(), SimpleCaptcha\showHelp(), FancyCaptcha\showImage(), FileDeleteForm\showLogEntries(), MWExceptionTest\testUseOutputPage(), wfHttpError(), and wfVarDump().
Parser $wgParser |
Definition at line 886 of file Setup.php.
Referenced by ApiQuerySiteinfo\appendExtensionTags(), ApiQuerySiteinfo\appendFunctionHooks(), PreprocessDump\checkOptions(), ApiFeedWatchlist\createFeedItem(), SpecialExpandTemplates\execute(), ApiExpandTemplates\execute(), ApiParse\execute(), PPFuzzTest\execute(), ApiQueryRevisionsBase\extractDeprecatedContent(), EditPage\extractSectionTitle(), TextContent\fillParserOutput(), WikitextContent\fillParserOutput(), SimpleCaptcha\findLinks(), ApiParse\formatSummary(), SpecialExpandTemplates\generateHtml(), MessageCache\getParser(), SpecialVersion\getParserFunctionHooks(), SpecialVersion\getParserTags(), RawAction\getRawText(), WikitextContent\getSection(), EditPage\getSummaryPreview(), EditPage\guessSectionName(), SimpleCaptcha\loadText(), TitleBlacklistEntry\newFromString(), EditPage\newSectionSummary(), onContentGetParserOutput(), OutputPage\parseInternal(), WikitextContent\preloadTransform(), CssContent\preSaveTransform(), JavaScriptContent\preSaveTransform(), WikitextContent\preSaveTransform(), WikitextContent\replaceSection(), ParserTestRunner\requireFunctionHook(), ParserTestRunner\requireHook(), ParserTestRunner\requireTransparentHook(), UploadFromUrlTestSuite\setUp(), ParserMethodsTest\testCallParserFunction(), ApiQuerySiteinfoTest\testExtensionTags(), ApiQuerySiteinfoTest\testFunctionHooks(), ParserMethodsTest\testGetSections(), ParserMethodsTest\testGuessSectionNameFromWikiText(), ParserMethodsTest\testPreSaveTransform(), ParserMethodsTest\testRecursiveParse(), ParserMethodsTest\testRevisionAccess(), and ParserMethodsTest\testWrapOutput().
if (! $wgDBerrorLogTZ) $wgRequest = RequestContext::getMain()->getRequest() |
Definition at line 728 of file Setup.php.
Referenced by SimpleCaptcha\badLoginKey(), MediaWiki\Special\SpecialPageFactory\capturePath(), RecentChange\checkIPAddress(), FeedUtils\checkPurge(), SimpleCaptcha\confirmEmailUser(), ChannelFeed\contentType(), ApiTestCase\doApiRequest(), UploadFromUrlTest\doApiRequest(), SimpleCaptcha\doConfirmEdit(), ApiEditPage\execute(), FileDeleteForm\execute(), SpamBlacklist\filter(), LanguageConverter\findVariantLink(), WebInstaller\getAcceptLanguage(), LanguageConverter\getHeaderVariant(), Title\getLocalURL(), ParserCache\getParserOutputKey(), User\getRequest(), AtomFeed\getSelfUrl(), MWExceptionHandler\getURL(), LanguageConverter\getURLVariant(), RequestContext\importScopedSession(), CategoryTreeHooks\initialize(), SimpleCaptcha\isIPWhitelisted(), RecentChange\newLogEntry(), ReCaptchaNoCaptcha\passCaptcha(), ReCaptcha\passCaptcha(), MediaWikiTestCase\resetNonServiceCaches(), ApiLogoutTest\setUp(), UploadFromUrlTestSuite\setUp(), FileDeleteForm\showForm(), FancyCaptcha\showImage(), MediaWikiTestCase\tearDown(), LanguageConverterTest\testGetPreferredVariantDefaultLanguageVsUrlVariant(), LanguageConverterTest\testGetPreferredVariantHeaderMulti(), LanguageConverterTest\testGetPreferredVariantHeaders(), LanguageConverterTest\testGetPreferredVariantHeadersBCP47(), LanguageConverterTest\testGetPreferredVariantHeaderUserVsUrl(), LanguageConverterTest\testGetPreferredVariantHeaderWeight(), LanguageConverterTest\testGetPreferredVariantHeaderWeight2(), LanguageConverterTest\testGetPreferredVariantUrl(), LanguageConverterTest\testGetPreferredVariantUrlBCP47(), LanguageConverterTest\testGetPreferredVariantUrlDeprecated(), ApiLogoutTest\testUserLogoutWithWebToken(), OutputPage\transformCssMedia(), and wfExpandUrl().
if ($wgServerName !==false) $wgServerName = $serverParts['host'] |
$wgUseEnotif = false |
Definition at line 437 of file Setup.php.
Referenced by User\clearAllNotifications(), User\clearNotification(), and RecentChange\save().
if(! $wgEmergencyContact) if(! $wgPasswordSender) if(! $wgNoReplyAddress) if ($wgSecureLogin &&substr($wgServer, 0, 2) !=='//' $wgVirtualRestConfig) [ 'global'][ 'domain'] = $wgCanonicalServer |
if (!defined('MW_NO_SESSION') &&! $wgCommandLineMode) else |
if(ini_get( 'mbstring.func_overload')) | ( | ini_get('mbstring.func_overload') | ) |