// Bail on old versions of PHP, or if composer has not been run yet to install
// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
+// @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound
require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php';
+// @codingStandardsIgnoreEnd
wfEntryPointCheck( 'mw-config/index.php' );
define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' );
if ( isset( $_SESSION['installData'][$fingerprint] ) ) {
$session = $_SESSION['installData'][$fingerprint];
} else {
- $session = array();
+ $session = [];
}
if ( !is_null( $wgRequest->getVal( 'uselang' ) ) ) {
$langCode = 'en';
}
$wgLang = Language::factory( $langCode );
+ RequestContext::getMain()->setLanguage( $wgLang );
$installer->setParserLanguage( $wgLang );