From: Brion Vibber Date: Wed, 5 Apr 2006 08:50:27 +0000 (+0000) Subject: Fix database user existence check: a username may be allowed to log in but not on... X-Git-Tag: 1.6.0~6 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%7B%7B%20url_for%28%27user_settings%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=05971d6e9e56b4e7409a7911e634a64664b6e5df;p=lhc%2Fweb%2Fwiklou.git Fix database user existence check: a username may be allowed to log in but not on the database we want, in which case we still have to add it. The grants are now per-database so they won't interfere. --- diff --git a/config/index.php b/config/index.php index ee22797441..736538b486 100644 --- a/config/index.php +++ b/config/index.php @@ -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();