23 define(
'MW_CONFIG_CALLBACK',
'Installer::overrideConfig' );
24 define(
'MEDIAWIKI_INSTALL',
true );
28 chdir( dirname( __DIR__ ) );
29 require dirname( __DIR__ ) .
'/includes/WebStart.php';
38 if ( !$installer->startSession() ) {
43 $fingerprint = $installer->getFingerprint();
44 if ( isset( $_SESSION[
'installData'][$fingerprint] ) ) {
45 $session = $_SESSION[
'installData'][$fingerprint];
50 if ( !is_null( $wgRequest->getVal(
'uselang' ) ) ) {
51 $langCode = $wgRequest->getVal(
'uselang' );
52 } elseif ( isset( $session[
'settings'][
'_UserLang'] ) ) {
53 $langCode = $session[
'settings'][
'_UserLang'];
59 $installer->setParserLanguage(
$wgLang );
63 $session = $installer->execute( $session );
65 $_SESSION[
'installData'][$fingerprint] = $session;