private function getConfigSettings( $context ) {
$conf = $this->getConfig();
- // Passing a context is important as Title::newMainPage() may otherwise
- // try to intialise a session, which is not allowed on load.php requests.
- $mainPage = Title::newMainPage( $context );
-
/**
* Namespace related preparation
* - wgNamespaceIds: Key-value pairs of all localized, canonical and aliases for namespaces.
'wgVersion' => $conf->get( 'Version' ),
'wgEnableAPI' => true, // Deprecated since MW 1.32
'wgEnableWriteAPI' => true, // Deprecated since MW 1.32
- 'wgMainPageTitle' => $mainPage->getPrefixedText(),
'wgFormattedNamespaces' => $contLang->getFormattedNamespaces(),
'wgNamespaceIds' => $namespaceIds,
'wgContentNamespaces' => MWNamespace::getContentNamespaces(),