Fixed yet another breakage introduced by r70608: bug 24764 - broken old installer...
[lhc/web/wiklou.git] / config / new-index.php
index de0a814..faf8886 100644 (file)
@@ -1,35 +1,17 @@
 <?php
+/**
+ * New version of MediaWiki web-based config/installation
+ *
+ * @file
+ */
 
-define( 'MW_NO_DB', 1 );
-define( 'MW_NO_SESSION', 1 );
-define( 'MW_CONFIG_CALLBACK', 'wfInstallerConfig' );
-
-function wfInstallerConfig() {
-       // Don't access the database
-       $GLOBALS['wgUseDatabaseMessages'] = false;
-       // Debug-friendly
-       $GLOBALS['wgShowExceptionDetails'] = true;
-       // Don't break forms
-       $GLOBALS['wgExternalLinkTarget'] = '_blank';
-
-       // Extended debugging. Maybe disable before release?
-       $GLOBALS['wgShowSQLErrors'] = true;
-       $GLOBALS['wgShowDBErrorBacktrace'] = true;
-}
+define( 'MW_CONFIG_CALLBACK', 'CoreInstaller::overrideConfig' );
 
 chdir( ".." );
 require( './includes/WebStart.php' );
 require_once( './maintenance/updaters.inc' ); // sigh...
 
-// Disable the i18n cache and LoadBalancer
-Language::getLocalisationCache()->disableBackend();
-LBFactory::disableBackend();
-
-// Load the installer's i18n file
-$wgExtensionMessagesFiles['MediawikiInstaller'] = './includes/installer/Installer.i18n.php';
-
 $installer = new WebInstaller( $wgRequest );
-$wgParser->setHook( 'doclink', array( $installer, 'docLink' ) );
 
 if ( !$installer->startSession() ) {
        $installer->finish();