From: Alexandre Emsenhuber Date: Sun, 12 Sep 2010 17:13:06 +0000 (+0000) Subject: Fix for r72870: seems I didn't see that updaters.inc was included in the config direc... X-Git-Tag: 1.31.0-rc.0~34973 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=2e249fcc7b24f361eed3a50b23cc1400a0489c02;p=lhc%2Fweb%2Fwiklou.git Fix for r72870: seems I didn't see that updaters.inc was included in the config directory, same for ^demon when he removed do_all_updates() in r72539 ;) --- diff --git a/config/Installer.php b/config/Installer.php index 17332f3420..9d8855cb42 100644 --- a/config/Installer.php +++ b/config/Installer.php @@ -277,9 +277,6 @@ if( !is_writable( "." ) ) {

Afterwards retry to start the setup.

" ); } - -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 "
\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 "
\n"; print "