MediaWiki  REL1_19
Setup.php File Reference

Include most things that's need to customize the site. 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.
 $messageMemc = wfGetMessageCacheStorage()
 $parserMemc = wfGetParserCacheStorage()
if($wgMetaNamespace===false$wgCanonicalNamespaceNames
 Definitions of the NS_ constants are in Defines.php.
if($wgArticleCountMethod===null)
if($wgInvalidateCacheOnLocalSettingsChange)
if($wgAjaxUploadDestCheck) if($wgNewUserLog)
if($wgCookieSecure=== 'detect')
global 
$wgCommandLineMode
 $wgContLang = Language::factory( $wgLanguageCode )
if(is_array($wgExtraNamespaces)) $wgContLanguageCode = $wgLanguageCode
if(is_null($wgEnableAutoRotation))
if($wgRCFilterByAge) if($wgSkipSkin)
if($wgSharedPrefix===false) if(!$wgCookiePrefix) 
$wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' )
 $wgDeferredUpdateList = array()
if($wgUseFileCache||$wgUseSquid)
if(!$wgAllowRealName) if(!$wgEnotifMinorEdits)
foreach($wgDisabledActions as
$action) if(!$wgAllowPageInfo)
if(!$wgHtml5Version &&$wgHtml5
&&$wgAllowRdfaAttributes) 
$wgFileExtensions = array_diff ( $wgFileExtensions, $wgFileBlacklist )
 $wgFullyInitialised = true
 $wgLang = new StubUserLang
 $wgLockManagers []
 Initialise $wgLockManagers to include basic FS version.
 $wgMemc = wfGetMainCache()
 $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(isset($wgFileStore['deleted']['directory']))
if(isset($wgFooterIcons['copyright'])&&isset($wgFooterIcons['copyright']['copyright'])&&$wgFooterIcons['copyright']['copyright']===array())
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.
 $wgOut = RequestContext::getMain()->getOutput()
 $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) )
if(!is_object($wgAuth)) $wgTitle = null
 $wgUseEnotif = $wgEnotifUserTalk || $wgEnotifWatchlist
 $wgUser = RequestContext::getMain()->getUser()

Detailed Description

Include most things that's need to customize the site.

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 22 of file Setup.php.

if ($wgMetaNamespace===false) $wgCanonicalNamespaceNames
Initial value:
 array(
        NS_MEDIA            => 'Media',
        NS_SPECIAL          => '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',
)

Definitions of the NS_ constants are in Defines.php.

Access:
private

Definition at line 271 of file Setup.php.

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

if ($wgArticleCountMethod===null) if ($wgInvalidateCacheOnLocalSettingsChange) if ($wgAjaxUploadDestCheck) if ($wgNewUserLog) if ($wgCookieSecure=== 'detect') global $wgCommandLineMode
$wgContLang = Language::factory( $wgLanguageCode )

Definition at line 473 of file Setup.php.

Referenced by DateFormatter\__construct(), CliInstaller\__construct(), AllmessagesTablePager\__construct(), LogPage\actionText(), OutputPage\addCategoryLinks(), LogPage\addEntry(), CategoryViewer\addImage(), ImageBuilder\addMissingImage(), User\addNewUserLogEntry(), CategoryViewer\addPage(), DatabaseOracle\addQuotes(), MagicWord\addToArray(), ApiQuerySiteinfo\appendGeneralInfo(), ApiQuerySiteinfo\appendMagicWords(), ApiQuerySiteinfo\appendNamespaceAliases(), ApiQuerySiteinfo\appendNamespaces(), ApiQuerySiteinfo\appendSpecialPageAliases(), Parser\braceSubstitution(), OutputPage\buildCssLinks(), XmlDumpWriter\canonicalTitle(), Title\capitalize(), SearchHighlighter\caseCallback(), CoreLinkFunctions\categoryLinkHook(), NamespaceConflictChecker\checkAll(), Orphans\checkOrphans(), Title\checkUserBlock(), ApiResult\cleanUp_helper(), WikiPage\commitRollback(), Sanitizer\decodeCharReferencesAndNormalize(), Block\decodeExpiry(), LinkBatch\doGenderQuery(), MysqlUpdater\doPagelinksUpdate(), SearchUpdate\doUpdate(), WikiPage\doUpdateRestrictions(), LinkHolderArray\doVariants(), Xml\elementClean(), SearchOracle\escapeTerm(), ApiQueryAllmessages\execute(), SpecialPrefixindex\execute(), ApiOpenSearch\execute(), ApiQueryBlocks\execute(), ConvertLinks\execute(), RandomPage\execute(), SpecialAllpages\execute(), HistoryAction\feedItem(), Interwiki\fetch(), FormatMetadata\flattenArray(), DateFormatter\formatDate(), Block\formatExpiry(), Linker\formatLinksInCommentCallback(), CoreParserFunctions\formatRaw(), PageQueryPage\formatResult(), WantedCategoriesPage\formatResult(), PopularPagesPage\formatResult(), AncientPagesPage\formatResult(), UnwatchedpagesPage\formatResult(), FewestrevisionsPage\formatResult(), MostlinkedCategoriesPage\formatResult(), MIMEsearchPage\formatResult(), FileDuplicateSearchPage\formatResult(), DifferenceEngine\generateDiffBody(), MessageCache\get(), SpecialPageFactory\getAliasList(), MessageCache\getAllMessageKeys(), WikiPage\getAutoDeleteReason(), WikiPage\getAutosummary(), Skin\getCachedNotice(), User\getCanonicalName(), Title\getCascadeProtectionSources(), LinksUpdate\getCategoryInsertions(), ResourceLoaderStartUpModule\getConfig(), Parser\getConverterLanguage(), Skin\getCopyright(), Title\getDefaultMessageText(), User\getDefaultOptions(), UploadForm\getDescriptionSection(), EditPage\getEditToolbar(), IdentityCollation\getFirstLetter(), ResourceLoaderModule\getFlip(), RevertFileAction\getFormFields(), WebRequest\getGPCVal(), MagicWordArray\getHash(), Linker\getInterwikiLinkAttributes(), RequestContext\getLanguage(), SpecialPageFactory\getLocalNameFor(), DateFormatter\getMonthRegex(), FileRepo\getNameFromTitle(), Title\getNamespaceKey(), SearchEngine\getNearMatchInternal(), SpecialEditWatchlist\getNormalForm(), BackupReader\getNsIndex(), RandomPage\getNsList(), Title\getNsText(), Title\getPageLanguage(), User\getPageRenderingHash(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), Title\getParentCategories(), User\getPasswordValidity(), WebRequest\getPathInfo(), ApiQueryInfo\getProtectionInfo(), Revision\getRevisionText(), Parser\getRevisionTimestamp(), Title\getSquidURLs(), CategoryViewer\getSubcategorySortChar(), Title\getSubjectNsText(), Title\getTalkNsText(), WebRequest\getText(), TextPassDumper\getTextDb(), TextPassDumper\getTextSpawnedOnce(), LogPage\getTitleLink(), Parser\getVariableValue(), Title\hasSourceText(), OutputPage\headElement(), wikiStatsOutput\heading(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), ImageHistoryList\imageHistoryLine(), Message\inContentLanguage(), Title\indexTitle(), ManualLogEntry\insert(), DatabaseOracle\insertOneRow(), User\isValidUserName(), FormatMetadata\langItem(), CoreParserFunctions\language(), ApiParse\languagesHtml(), CoreParserFunctions\lc(), CoreParserFunctions\lcfirst(), SearchHighlighter\linkReplace(), MagicWord\load(), Title\loadRestrictions(), Title\loadRestrictionsFromRows(), GenerateSitemap\main(), Linker\makeImageLink2(), PPFuzzTester\makeInputText(), DateFormatter\makeIsoMonth(), Title\makeName(), WikiPage\makeParserOptions(), Linker\makeThumbLink2(), MagicWordArray\matchStartToEnd(), Preferences\miscPreferences(), Title\moveToInternal(), FormatMetadata\msg(), XmlDumpWriter\namespaces(), SearchEngine\namespacesAsText(), Html\namespaceSelector(), SearchEngine\normalizeText(), SearchMySQL\normalizeText(), WebRequest\normalizeUnicode(), CoreParserFunctions\ns(), SpecialLockdb\onSubmit(), ParserOptions\optionsHash(), LegacyTemplate\otherLanguages(), SpecialPage\outputHeader(), SkinTemplate\outputPage(), QueryPage\outputResults(), SearchMySQL\parseQuery(), SearchSqlite\parseQuery(), SearchIBM_DB2\parseQuery(), SearchMssql\parseQuery(), SearchOracle\parseQuery(), MediaWiki\parseTitle(), WikiPage\prepareTextForEdit(), TitleCleanup\processRow(), ImageCleanup\processRow(), WatchlistCleanup\processRow(), CapsCleanup\processRow(), ApiPageSet\processTitlesArray(), Preferences\profilePreferences(), Parser\pstPass2(), ForeignAPIFile\purgeDescriptionPage(), StandardTemplate\quickBar(), SearchMySQL\regexTerm(), SearchSqlite\regexTerm(), MessageCache\replace(), LinkHolderArray\replaceInternal(), SearchEngine\replacePrefixes(), ImportReporter\reportPage(), SpecialPageFactory\resolveAlias(), RefreshLinksJob\run(), ApiQueryProtectedTitles\run(), ApiQuerySearch\run(), RefreshLinksJob2\run(), EditPage\safeUnicodeOutput(), RecentChange\save(), SearchEngine\searchableNamespaces(), SearchSqlite\searchInternal(), Preferences\searchPreferences(), Title\secureAndSplit(), EmailNotification\sendImpersonal(), EmailNotification\sendPersonalised(), Parser\setFunctionHook(), SpecialRecentChanges\setTopText(), RevisionTest\setUp(), LanguageConverterTest\setUp(), XmlTest\setUp(), TestSample\setUp(), ExtraParserTest\setUp(), ParserOptionsTest\setUp(), HtmlTest\setUp(), MediaWikiLangTestCase\setUp(), BlockTest\setUp(), ApiTestCase\setUp(), TitlePermissionTest\setUp(), MagicVariableTest\setUp(), NewParserTest\setUp(), WebInstaller\setupLanguage(), SpecialAllpages\showChunk(), EditPage\showDiff(), MovePageForm\showForm(), SpecialSearch\showInterwiki(), SpecialAllpages\showline(), SpecialBookSources\showList(), SpecialSearch\showMatches(), SpecialPrefixindex\showPrefixChunk(), SpecialSearch\showResults(), EditPage\showSummaryInput(), PrefixSearch\specialSearch(), Linker\splitTrail(), SpecialSearch\startsWithImage(), Parser\statelessFetchTemplate(), WebInstaller_Name\submit(), SkinTemplate\tabAction(), MediaWikiLangTestCase\tearDown(), XmlTest\tearDown(), HtmlTest\tearDown(), ArticleTablesTest\testbug14404(), LanguageConverterTest\testGetPreferredVariantDefaultLanguageVsUrlVariant(), LanguageConverterTest\testGetPreferredVariantHeaderUserVsUrl(), TitlePermissionTest\testPageRestrictions(), TitlePermissionTest\testQuickPermissions(), TimeAdjustTest\testUserAdjust(), CoreParserFunctions\uc(), CoreParserFunctions\ucfirst(), PageArchive\undelete(), DatabaseOracle\update(), LocalFile\upload(), HTMLFileCache\useFileCache(), PrefixSearch\validateNamespaces(), wfGetLangObj(), and DatabaseOracle\wrapFieldForWhere().

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

Definition at line 298 of file Setup.php.

if (is_null($wgEnableAutoRotation)) if ($wgRCFilterByAge) if ($wgSkipSkin) if ($wgSharedPrefix===false) if (!$wgCookiePrefix) $wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' )

Definition at line 259 of file Setup.php.

$wgDeferredUpdateList = array()

Definition at line 504 of file Setup.php.

Referenced by DeferredUpdates\clearPendingUpdates(), and DeferredUpdates\doUpdates().

if ($wgUseFileCache||$wgUseSquid) if (!$wgAllowRealName) if (!$wgEnotifMinorEdits) foreach ($wgDisabledActions as $action) if (!$wgAllowPageInfo) if (!$wgHtml5Version &&$wgHtml5 &&$wgAllowRdfaAttributes) $wgFileExtensions = array_diff ( $wgFileExtensions, $wgFileBlacklist )

Definition at line 337 of file Setup.php.

$wgFullyInitialised = true

Definition at line 532 of file Setup.php.

Referenced by MWExceptionHandler\handle().

$wgLang = new StubUserLang

Definition at line 484 of file Setup.php.

Referenced by CliInstaller\__construct(), Message\__construct(), PermissionsError\__construct(), ParserOptions\__construct(), UserBlockedError\__construct(), LogPage\actionText(), OutputPage\buildCssLinks(), ProtectionForm\buildForm(), SpecialEditWatchlist\buildTools(), SpecialPageFactory\capturePath(), Title\checkActionPermissions(), Title\checkUserBlock(), UploadBase\checkWarnings(), Article\delete(), LegacyTemplate\doBeforeContent(), Installer\doGenerateKeys(), Installer\envCheckDB(), UsercreateTemplate\execute(), ApiParse\execute(), ApiQueryAllmessages\execute(), ChangesFeed\execute(), UpdateMediaWiki\execute(), WebInstaller_Language\execute(), LocalFileRestoreBatch\execute(), LegacyTemplate\extensionTabLinks(), Linker\formatAutocommentsCallback(), FeedUtils\formatDiffRow(), Block\formatExpiry(), Linker\formatHiddenCategories(), FormatMetadata\formatNum(), Linker\formatRevisionSize(), SpecialVersion\getCopyrightAndAuthorList(), User\getDatePreference(), File\getDescriptionText(), WebInstallerOutput\getDir(), EditPage\getEditToolbar(), LogEventsList\getFilterLinks(), FormatMetadata\getFormattedData(), MediaHandler\getGeneralLongDesc(), MediaHandler\getGeneralShortDesc(), ResourceLoaderContext\getLanguage(), WebInstallerOutput\getLanguageCode(), RevisionDeleter\getLogLinks(), PNGHandler\getLongDesc(), GIFHandler\getLongDesc(), SvgHandler\getLongDesc(), MediaHandler\getLongDesc(), ImageHandler\getLongDesc(), Title\getPageLanguage(), User\getPageRenderingHash(), MediaHandler\getShortDesc(), ImageHandler\getShortDesc(), ImageHistoryList\getThumbForLine(), ImagePage\imageDupes(), ImageHistoryList\imageHistoryLine(), ImagePage\imageLinks(), EditPage\importFormData(), SpecialJavaScriptTest\initQUnitTesting(), LogEventsList\logTimestamp(), Title\missingPermissionError(), Xml\monthSelector(), DBConnectionError\msg(), LegacyTemplate\nameAndLogin(), ImagePage\openShowImage(), LegacyTemplate\otherLanguages(), LegacyTemplate\pageTitleLinks(), FileDeleteForm\prepareMessage(), LegacyTemplate\printableLink(), LoginForm\processLogin(), SkinLegacy\qbSetting(), ParserOutput\replaceEditSectionLinksCallback(), User\sendConfirmationMail(), Article\setOldSubtitle(), XmlTest\setUp(), HtmlTest\setUp(), MediaWikiLangTestCase\setUp(), UploadFromUrlTestSuite\setUp(), TitlePermissionTest\setUp(), ParserTest\setUp(), WebInstaller\setupLanguage(), ChangesList\showCharacterDifference(), EditPage\showHeader(), EnhancedChangesList\sideArrow(), MediaWikiLangTestCase\tearDown(), XmlTest\tearDown(), HtmlTest\tearDown(), ArticleTablesTest\testbug14404(), ExtraParserTest\testBug8689(), MessageTest\testInContentLanguage(), TitlePermissionTest\testUserBlock(), ImageGallery\toHTML(), MWException\useMessageCache(), Linker\userToolLinks(), LegacyTemplate\variantLinks(), wfGetLangObj(), wfInstallerMain(), wfShowingResults(), wfSpecialList(), wfUILang(), and wfViewPrevNext().

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

Initialise $wgLockManagers to include basic FS version.

Definition at line 120 of file Setup.php.

$wgMemc = wfGetMainCache()

Definition at line 439 of file Setup.php.

Referenced by LoginForm\addNewAccountInternal(), Skin\buildSidebar(), LocalRepo\checkRedirect(), LoginForm\clearLoginThrottle(), User\clearSharedCache(), clear_stats\execute(), nextJobDB\execute(), ClearInterwikiCache\execute(), DeleteImageCache\execute(), CacheStats\execute(), SpecialStatistics\execute(), ForeignAPIRepo\fetchImageQuery(), WikiPage\getCachedLastEditTime(), File\getDescriptionText(), DifferenceEngine\getDiffBody(), DateFormatter\getInstance(), LoadMonitor_MySQL\getLagTimes(), BitmapHandler\getMagickVersion(), FileCacheBase\getMissesRecent(), User\getNewtalk(), ForeignAPIRepo\getThumbUrlFromCache(), LoginForm\incLoginThrottle(), FileCacheBase\incrMissesRecent(), ForkController\initChild(), UserRightsProxy\invalidateCache(), LocalRepo\invalidateImageRedirect(), Block\isWhitelistedFromAutoblocks(), ChangeTags\listDefinedTags(), Interwiki\load(), User\loadFromId(), AjaxResponse\loadFromMemcached(), LanguageConverter\loadTables(), Revision\loadText(), ApiMain\makeHelpMsg(), memsess_destroy(), memsess_read(), memsess_write(), SiteStats\numberingroup(), BacklinkCache\partition(), User\pingLimiter(), ForkController\prepareEnvironment(), Preprocessor_Hash\preprocessToObj(), Preprocessor_DOM\preprocessToObj(), LoginForm\processLogin(), ForeignAPIFile\purgeDescriptionPage(), LocalFile\purgeHistory(), purgeStaleMemcachedText(), ForeignAPIFile\purgeThumbnails(), MessageCache\replace(), User\saveToCache(), WikiPage\setCachedLastEditTime(), User\setNewtalk(), LanguageConverterTest\setUp(), ExtraParserTest\setUp(), ApiTestCase\setUp(), UploadFromUrlTestSuite\setUp(), TitlePermissionTest\setUp(), ParserTest\setUp(), SpecialAllpages\showToplevel(), AjaxResponse\storeInMemcached(), LanguageConverterTest\tearDown(), wfIncrStats(), and wfProxyCheck().

$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 114 of file Setup.php.

$wgNamespaceAliases['Image_talk'] = NS_FILE_TALK

Definition at line 115 of file Setup.php.

if (isset($wgFileStore['deleted']['directory'])) if (isset($wgFooterIcons['copyright'])&&isset($wgFooterIcons['copyright']['copyright'])&&$wgFooterIcons['copyright']['copyright']===array()) 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 107 of file Setup.php.

$wgOut = RequestContext::getMain()->getOutput()

Definition at line 489 of file Setup.php.

Referenced by Article\adjustDisplayTitle(), EditPage\attemptSave(), ImageHistoryList\beginImageHistoryList(), LegacyTemplate\bottomLinks(), ProtectionForm\buildCleanupScript(), ProtectionForm\buildForm(), SpecialPageFactory\capturePath(), FeedUtils\checkFeedOutput(), LegacyTemplate\commentLink(), Article\confirmDelete(), Article\delete(), UploadBase\detectVirus(), EditPage\displayPermissionsError(), EditPage\displayPreviewArea(), Article\doDelete(), Article\doRedirect(), EditPage\edit(), LegacyTemplate\editThisPage(), FileDeleteForm\execute(), RebuildFileCache\execute(), ProtectionForm\execute(), DBConnectionError\fileCachedPage(), EditPage\getContent(), SpecialUpload\getDupeWarning(), EditPage\getEditToolbar(), EditPage\getPreviewText(), Article\getRobotPolicy(), ChannelFeed\httpHeaders(), ImagePage\imageDupes(), ImagePage\imageHistory(), ImagePage\imageLinks(), EditPage\livePreview(), ChangesFeed\loadFromCache(), Skin\makeGlobalVariablesScript(), QuickTemplate\msgWiki(), EditPage\noSuchSectionPage(), ImagePage\openShowImage(), LegacyTemplate\otherLanguages(), LegacyTemplate\pageSubtitle(), LegacyTemplate\pageTitle(), LegacyTemplate\pageTitleLinks(), AjaxDispatcher\performAction(), LegacyTemplate\printableLink(), ImagePage\printSharedImageText(), EditPage\readOnlyPage(), ImagePage\render(), Article\render(), ParserOutput\replaceEditSectionLinksCallback(), ErrorPageError\report(), BadTitleError\report(), PermissionsError\report(), ThrottledError\report(), MWException\reportHTML(), ProtectionForm\save(), SeleniumTestHTMLLogger\setHeaders(), FileDeleteForm\setHeaders(), EditPage\setHeaders(), Article\setOldSubtitle(), UploadFromUrlTestSuite\setUp(), RdfMetaData\setup(), ParserTest\setUp(), ProtectionForm\show(), EditPage\showConflict(), Article\showCssOrJsPage(), EditPage\showCustomIntro(), Article\showDeletedRevisionHeader(), EditPage\showDiff(), EditPage\showEditForm(), EditPage\showEditTools(), ImagePage\showError(), FileDeleteForm\showForm(), EditPage\showFormAfterText(), EditPage\showFormBeforeText(), EditPage\showHeader(), EditPage\showIntro(), FileDeleteForm\showLogEntries(), Article\showMissingArticle(), Article\showNamespaceHeader(), Article\showPatrolFooter(), EditPage\showPreview(), Article\showRedirectedFromHeader(), EditPage\showStandardInputs(), EditPage\showSummaryInput(), EditPage\showTextbox(), EditPage\showTosSummary(), Article\showViewFooter(), EditPage\spamPage(), EditPage\spamPageWithContent(), GlobalTest\testDebugFunctionTest(), LegacyTemplate\topLinks(), ImagePage\uploadLinksBox(), ImagePage\view(), Article\view(), Article\viewRedirect(), LegacyTemplate\watchPageLinksLink(), LegacyTemplate\watchThisPage(), wfDebug(), wfHttpError(), wfVarDump(), and SeleniumTestHTMLLogger\write().

$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) )
if (!is_object($wgAuth)) $wgTitle = null

Definition at line 502 of file Setup.php.

$wgUseEnotif = $wgEnotifUserTalk || $wgEnotifWatchlist
$wgUser = RequestContext::getMain()->getUser()

Definition at line 479 of file Setup.php.

Referenced by UploadStash\__construct(), ProtectionForm\__construct(), ApiMain\__construct(), Installer\__construct(), ParserOptions\__construct(), Revision\__construct(), LogPage\addEntry(), LoginForm\addNewAccount(), User\addNewUserLogEntry(), EditPage\attemptSave(), LoginForm\authenticateUserData(), ImageHistoryList\beginImageHistoryList(), EditPage\blockedPage(), LegacyTemplate\bottomLinks(), ProtectionForm\buildForm(), Linker\buildRollbackLink(), ProtectionForm\buildSelector(), SpecialPageFactory\capturePath(), AjaxResponse\checkLastModified(), FeedUtils\checkPurge(), Article\commitRollback(), EditPage\commitWatch(), ResourceLoaderUserTokensModule\contextUserTokens(), WikiPage\createUpdates(), Language\dateFormat(), LegacyTemplate\deleteThisPage(), LocalFileDeleteBatch\doDBInserts(), FileDeleteForm\doDelete(), WikiPage\doDeleteArticleReal(), WikiPage\doEdit(), Article\doRollback(), Article\doUnwatch(), Article\doWatch(), EditPage\edit(), ImportSiteScripts\execute(), DeleteDefaultMessages\execute(), CleanupSpam\execute(), Undelete\execute(), Protect\execute(), EditCLI\execute(), CapsCleanup\execute(), FileDeleteForm\execute(), TableCleanup\execute(), DeleteBatch\execute(), MoveBatch\execute(), PPFuzzTest\execute(), LanguageConverter\findVariantLink(), User\getBlockedStatus(), ApiQueryInfo\getBlockToken(), EditPage\getCheckboxes(), Article\getContent(), ApiQueryInfo\getDeleteToken(), EditPage\getEditPermissionErrors(), ApiQueryInfo\getEditToken(), ApiQueryInfo\getEmailToken(), LogEventsList\getExcludeClause(), GenderCache\getGenderOf(), ApiQueryInfo\getImportToken(), WebRequest\getLimitOffset(), ResourceLoaderUserCSSPrefsModule\getModifiedTime(), ResourceLoaderUserOptionsModule\getModifiedTime(), ApiQueryInfo\getMoveToken(), Title\getNotificationTimestamp(), Article\getParserOptions(), Article\getParserOutput(), ApiQueryRecentChanges\getPatrolToken(), LanguageConverter\getPreferredVariant(), EditPage\getPreloadedText(), EditPage\getPreviewText(), ApiQueryInfo\getProtectToken(), SpecialPageFactory\getRestrictedPages(), ApiQueryRevisions\getRollbackToken(), ResourceLoaderUserOptionsModule\getScript(), LogEventsList\getShowHideLinks(), ResourceLoaderUserCSSPrefsModule\getStyles(), SearchResult\getTextSnippet(), LogEventsList\getTypeSelector(), SpecialPageFactory\getUsablePages(), ApiQueryUsers\getUserrightsToken(), LanguageConverter\getUserVariant(), ApiQueryInfo\getWatchToken(), ImageHistoryList\imageHistoryLine(), EditPage\importFormData(), EditPage\initialiseForm(), EditPage\internalAttemptSave(), Title\isValidMoveOperation(), UploadFromUrl\isValidRequest(), Linker\linkAttribs(), ProtectionForm\loadData(), LogEventsList\logActionLinks(), Linker\makeSizeLinkObj(), RecentChange\markPatrolled(), Title\moveTo(), Title\moveToInternal(), LegacyTemplate\nameAndLogin(), ImagePage\openShowImage(), LegacyTemplate\pageTitleLinks(), AjaxDispatcher\performAction(), WikiPage\prepareTextForEdit(), WikiPage\preSaveTransform(), EditPage\previewOnOpen(), LegacyTemplate\protectThisPage(), SkinLegacy\qbSetting(), DatabaseBase\query(), WikiPage\quickEdit(), LocalFile\recordUpload(), LocalFile\recordUpload2(), DoubleRedirectJob\run(), RecentChange\save(), ProtectionForm\save(), EditPage\setHeaders(), Article\setOldSubtitle(), LanguageConverterTest\setUp(), ParserOptionsTest\setUp(), ApiTestCase\setUp(), UploadFromUrlTestSuite\setUp(), ParserTest\setUp(), TitlePermissionTest\setUser(), EditPage\showDiff(), Article\showDiffPage(), EditPage\showEditForm(), FileDeleteForm\showForm(), EditPage\showFormAfterText(), EditPage\showHeader(), EditPage\showIntro(), Article\showMissingArticle(), Article\showPatrolFooter(), EditPage\showTextbox(), SpecialEmailUser\submit(), TitlePermissionTest\testActionPermissions(), UploadStashTest\testBug29408(), ExtraParserTest\testBug8689(), TitlePermissionTest\testCascadingSourcesRestrictions(), TitlePermissionTest\testCssAndJavascriptPermissions(), LanguageConverterTest\testGetPreferredVariantHeaderUserVsUrl(), LanguageConverterTest\testGetPreferredVariantUserOption(), TitlePermissionTest\testPageRestrictions(), ExtraParserTest\testPreSaveTransform(), TitlePermissionTest\testQuickPermissions(), TitlePermissionTest\testSpecialsAndNSPermissions(), TemplateCategoriesTest\testTemplateCategories(), ApiUploadTest\testUploadChunks(), ApiUploadTest\testUploadStash(), TitlePermissionTest\testUserBlock(), EditPage\tokenOk(), LogEventsList\typeAction(), WikiPage\updateRestrictions(), Title\updateTitleProtection(), ImagePage\uploadLinksBox(), WikiPage\useParserCache(), ChangesList\usePatrol(), Language\userAdjust(), Title\userCan(), LogEventsList\userCanBitfield(), Revision\userCanBitfield(), Title\userCanEditCssSubpage(), Title\userCanEditJsSubpage(), Title\userIsWatching(), Linker\userToolLinks(), Title\validateFileMoveOperation(), ImagePage\view(), Article\view(), WikiPage\viewUpdates(), LegacyTemplate\watchThisPage(), and wfLogProfilingData().