From: Greg Sabino Mullane Date: Wed, 14 Mar 2007 16:32:48 +0000 (+0000) Subject: Allow password-less superusers via the checkbox. X-Git-Tag: 1.31.0-rc.0~53739 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=99c9f593cd4c0a7b411d30f6fa2599b9d104e23f;p=lhc%2Fweb%2Fwiklou.git Allow password-less superusers via the checkbox. --- diff --git a/config/index.php b/config/index.php index ab465b3ac6..2fc91f2f3b 100644 --- a/config/index.php +++ b/config/index.php @@ -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( "
  • Attempting to connect to database \"postgres\" as superuser \"$wgDBsuperuser\"..." ); $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDBsuperuser, $conf->RootPW, "postgres", 1);