'wgEnotifUserTalk',
'wgEnotifWatchlist',
'wgEmailAuthentication',
+ 'wgDBname',
'wgDBtype',
'wgDiff3',
'wgImageMagickConvertCommand',
// $wgLogo is probably wrong (bug 48084); set something that will work.
// Single quotes work fine here, as LocalSettingsGenerator outputs this unescaped.
'wgLogo' => '$wgResourceBasePath/resources/assets/wiki.png',
+ 'wgAuthenticationTokenVersion' => 1,
);
/**
public function __construct() {
global $wgMessagesDirs, $wgUser;
+ // Don't attempt to load user language options (T126177)
+ // This will be overridden in the web installer with the user-specified language
+ RequestContext::getMain()->setLanguage( 'en' );
+
// Disable the i18n cache
Language::getLocalisationCache()->disableBackend();
// Disable LoadBalancer and wfGetDB etc.
// Having a user with id = 0 safeguards us from DB access via User::loadOptions().
$wgUser = User::newFromId( 0 );
+ RequestContext::getMain()->setUser( $wgUser );
$this->settings = $this->internalDefaults;
}
$this->parserTitle = Title::newFromText( 'Installer' );
- $this->parserOptions = new ParserOptions; // language will be wrong :(
+ $this->parserOptions = new ParserOptions( $wgUser ); // language will be wrong :(
$this->parserOptions->setEditSection( false );
}
}
if ( !$caches ) {
- $this->showMessage( 'config-no-cache' );
+ $key = 'config-no-cache';
+ // PHP >=5.5 is called APCu, earlier versions use APC (T61998).
+ if ( !wfIsHHVM() && version_compare( PHP_VERSION, '5.5', '>=' ) ) {
+ // config-no-cache-apcu
+ $key .= '-apcu';
+ }
+ $this->showMessage( $key );
}
$this->setVar( '_Caches', $caches );
// Some of the environment checks make shell requests, remove limits
$GLOBALS['wgMaxShellMemory'] = 0;
+
+ $GLOBALS['wgSessionProviders'] = array(
+ array(
+ 'class' => 'InstallerSessionProvider',
+ 'args' => array( array(
+ 'priority' => 1,
+ ) )
+ )
+ );
}
/**