r1536 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1535‎ | r1536 | r1537 >
Date:10:24, 9 August 2003
Author:vibber
Status:old
Tags:
Comment:
oops...
Modified paths:
  • /branches/stable/phase3/includes/DatabaseFunctions.php (modified) (history)

Diff [purge]

Index: branches/stable/phase3/includes/DatabaseFunctions.php
@@ -22,7 +22,7 @@
2323 $db = ($altdb ? $altdb : $wgDBname );
2424 $wgDBconnection = mysql_connect( $serve, $altuser, $altpassword )
2525 or die( "bad sql user" );
26 - mysql_select_db( $wgDBname, $wgDBconnection ) or die(
 26+ mysql_select_db( $db, $wgDBconnection ) or die(
2727 htmlspecialchars(mysql_error()) );
2828 }
2929
@@ -37,7 +37,7 @@
3838 @$wgDBconnection = mysql_connect( $wgDBserver, $wgDBuser, $wgDBpassword )
3939 or wfEmergencyAbort();
4040
41 - @mysql_select_db( $db, $wgDBconnection )
 41+ @mysql_select_db( $wgDBname, $wgDBconnection )
4242 or wfEmergencyAbort();
4343 }
4444 }

Status & tagging log