From: Greg Sabino Mullane Date: Thu, 29 Jun 2006 01:47:57 +0000 (+0000) Subject: Make do_all_updates mysql only. X-Git-Tag: 1.31.0-rc.0~56533 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=714252de1c2ac55425957722153bfa995acd29a3;p=lhc%2Fweb%2Fwiklou.git Make do_all_updates mysql only. Write wgDBport to config file. --- diff --git a/config/index.php b/config/index.php index 528543e3e6..14f53d4e15 100644 --- a/config/index.php +++ b/config/index.php @@ -741,13 +741,14 @@ error_reporting( E_ALL ); dbsource( "../maintenance/users.sql", $wgDatabase ); } } - print "
\n";
-			chdir( ".." );
-			flush();
-			do_all_updates();
-			chdir( "config" );
-
-			print "
\n"; + if ( $conf->DBtype == 'mysql') { + print "
\n";
+				chdir( ".." );
+				flush();
+				do_all_updates();
+				chdir( "config" );
+				print "
\n"; + } print "
  • Finished update checks.
  • \n"; } else { # FIXME: Check for errors @@ -1346,6 +1347,7 @@ if ( \$wgCommandLineMode ) { \$wgDBprefix = \"{$slconf['DBprefix']}\"; \$wgDBtype = \"{$slconf['DBtype']}\"; \$wgDBschema = \"{$slconf['DBschema']}\"; +\$wgDBport = \"{$slconf['DBport']}\"; # Experimental charset support for MySQL 4.1/5.0. \$wgDBmysql5 = {$conf->DBmysql5};