From 3b23b4291b093682d86d3d2b82f216315f418810 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 23 Feb 2011 14:26:45 +0000 Subject: [PATCH] Fix backwards canCreateAccounts() check, remove setting search_path for $wgDBuser, since this is set per-session on open() --- includes/installer/PostgresInstaller.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.20.1