42 $request = RequestContext::getMain()->getRequest();
46 if ( !$installer->startSession() ) {
47 if ( $installer->request->getVal(
'css' ) ) {
49 $installer->outputCss();
53 $errors = $installer->getPhpErrors();
54 $installer->showError(
'config-session-error', $errors[0] );
59 $fingerprint = $installer->getFingerprint();
60 if ( isset( $_SESSION[
'installData'][$fingerprint] ) ) {
61 $session = $_SESSION[
'installData'][$fingerprint];
66 if ( $request->getCheck(
'uselang' ) ) {
67 $langCode = $request->getVal(
'uselang' );
68 } elseif ( isset( $session[
'settings'][
'_UserLang'] ) ) {
69 $langCode = $session[
'settings'][
'_UserLang'];
73 $wgLang = Language::factory( $langCode );
74 RequestContext::getMain()->setLanguage(
$wgLang );
76 $installer->setParserLanguage(
$wgLang );
80 $session = $installer->execute( $session );
82 $_SESSION[
'installData'][$fingerprint] = $session;
wfEntryPointCheck( $format='text', $scriptPath='/')
Check PHP version and that external dependencies are installed, and display an informative error if e...