Fix for r72870: seems I didn't see that updaters.inc was included in the config direc...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Sep 2010 17:13:06 +0000 (17:13 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Sep 2010 17:13:06 +0000 (17:13 +0000)
config/Installer.php
config/new-index.php

index 17332f3..9d8855c 100644 (file)
@@ -277,9 +277,6 @@ if( !is_writable( "." ) ) {
        <p>Afterwards retry to start the <a href=\"\">setup</a>.</p>" );
 }
 
-
-require_once( "$IP/maintenance/updaters.inc" );
-
 class ConfigData {
        function getEncoded( $data ) {
                # removing latin1 support, no need...
@@ -1236,7 +1233,14 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        print "</ul><pre>\n";
                        chdir( ".." );
                        flush();
-                       do_all_updates();
+
+                       define( 'MW_NO_SETUP', true );
+                       $updater = DatabaseUpdater::newForDb( $wgDatabase, false );
+                       $updater->doUpdates();
+                       foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
+                               call_user_func_array( array( new $maint, 'execute' ), array() );
+                       }
+
                        chdir( "config" );
                        print "</pre>\n";
                        print "<ul><li>Finished update checks.</li>\n";
index faf8886..fa7ec60 100644 (file)
@@ -9,7 +9,6 @@ define( 'MW_CONFIG_CALLBACK', 'CoreInstaller::overrideConfig' );
 
 chdir( ".." );
 require( './includes/WebStart.php' );
-require_once( './maintenance/updaters.inc' ); // sigh...
 
 $installer = new WebInstaller( $wgRequest );