Allow password-less superusers via the checkbox.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 14 Mar 2007 16:32:48 +0000 (16:32 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 14 Mar 2007 16:32:48 +0000 (16:32 +0000)
config/index.php

index ab465b3..2fc91f2 100644 (file)
@@ -706,7 +706,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        error_reporting( E_ALL );
                        $wgSuperUser = '';
                        ## Possible connect as a superuser
-                       if( $conf->Root ) {
+                       if( $useRoot ) {
                                $wgDBsuperuser = $conf->RootUser;
                                echo( "<li>Attempting to connect to database \"postgres\" as superuser \"$wgDBsuperuser\"..." );
                                $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDBsuperuser, $conf->RootPW, "postgres", 1);