From: Chad Horohoe Date: Wed, 23 Feb 2011 14:26:45 +0000 (+0000) Subject: Fix backwards canCreateAccounts() check, remove setting search_path for $wgDBuser... X-Git-Tag: 1.31.0-rc.0~31813 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=3b23b4291b093682d86d3d2b82f216315f418810;p=lhc%2Fweb%2Fwiklou.git Fix backwards canCreateAccounts() check, remove setting search_path for $wgDBuser, since this is set per-session on open() --- diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index 1e55737c65..b7f9c8f393 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -162,8 +162,7 @@ class PostgresInstaller extends DatabaseInstaller { } // Validate the create checkbox - $canCreate = $this->canCreateAccounts(); - if ( $canCreate ) { + if ( !$this->canCreateAccounts() ) { $this->setVar( '_CreateDBAccount', false ); $create = false; } else { @@ -287,7 +286,6 @@ class PostgresInstaller extends DatabaseInstaller { if ( $res !== true && !( $res instanceOf ResultWrapper ) ) { $status->fatal( 'config-install-user-failed', $this->getVar( 'wgDBuser' ), $res ); } - $this->db->query("ALTER USER $safeuser SET search_path = $safeschema"); } return $status;