Fix database user existence check: a username may be allowed to log in but not on...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Apr 2006 08:50:27 +0000 (08:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Apr 2006 08:50:27 +0000 (08:50 +0000)
config/index.php

index ee22797..736538b 100644 (file)
@@ -690,7 +690,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        # Set up the "regular user" account *if we can, and if we need to*
                        if( $conf->Root ) {
                                # See if we need to
-                               $wgDatabase2 = Database::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, '', 1 );
+                               $wgDatabase2 = Database::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1 );
                                if( $wgDatabase2->isOpen() ) {
                                        # Nope, just close the test connection and continue
                                        $wgDatabase2->close();