Index: trunk/phase3/includes/DatabaseFunctions.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | $db = ($altdb ? $altdb : $wgDBname ); |
24 | 24 | $wgDBconnection = mysql_connect( $serve, $altuser, $altpassword ) |
25 | 25 | or die( "bad sql user" ); |
26 | | - mysql_select_db( $wgDBname, $wgDBconnection ) or die( |
| 26 | + mysql_select_db( $db, $wgDBconnection ) or die( |
27 | 27 | htmlspecialchars(mysql_error()) ); |
28 | 28 | } |
29 | 29 | |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | @$wgDBconnection = mysql_connect( $wgDBserver, $wgDBuser, $wgDBpassword ) |
39 | 39 | or wfEmergencyAbort(); |
40 | 40 | |
41 | | - @mysql_select_db( $db, $wgDBconnection ) |
| 41 | + @mysql_select_db( $wgDBname, $wgDBconnection ) |
42 | 42 | or wfEmergencyAbort(); |
43 | 43 | } |
44 | 44 | } |