45 if ( !$installer->startSession() ) {
46 if ( $installer->request->getVal(
"css" ) ) {
48 $installer->outputCss();
52 $errors = $installer->getPhpErrors();
53 $installer->showError(
'config-session-error', $errors[0] );
58 $fingerprint = $installer->getFingerprint();
59 if ( isset( $_SESSION[
'installData'][$fingerprint] ) ) {
60 $session = $_SESSION[
'installData'][$fingerprint];
65 if ( !is_null(
$wgRequest->getVal(
'uselang' ) ) ) {
67 } elseif ( isset( $session[
'settings'][
'_UserLang'] ) ) {
68 $langCode = $session[
'settings'][
'_UserLang'];
72 $wgLang = Language::factory( $langCode );
75 $installer->setParserLanguage(
$wgLang );
79 $session = $installer->execute( $session );
81 $_SESSION[
'installData'][$fingerprint] = $session;
static getMain()
Get the RequestContext object associated with the main request.