From 714252de1c2ac55425957722153bfa995acd29a3 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 29 Jun 2006 01:47:57 +0000 Subject: [PATCH] Make do_all_updates mysql only. Write wgDBport to config file. --- config/index.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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}; -- 2.20.1