Index: trunk/phase3/includes/installer/PostgresInstaller.php |
— | — | @@ -276,15 +276,13 @@ |
277 | 277 | |
278 | 278 | $same = $this->getVar( 'wgDBuser' ) === $this->getVar( '_InstallUser' ); |
279 | 279 | |
280 | | - if ( !$same ) { |
281 | | - // Check if the web user exists |
282 | | - // Connect to the database with the install user |
283 | | - $status = $this->getPgConnection( 'create-db' ); |
284 | | - if ( !$status->isOK() ) { |
285 | | - return $status; |
286 | | - } |
287 | | - $exists = $status->value->roleExists( $this->getVar( 'wgDBuser' ) ); |
| 280 | + // Check if the web user exists |
| 281 | + // Connect to the database with the install user |
| 282 | + $status = $this->getPgConnection( 'create-db' ); |
| 283 | + if ( !$status->isOK() ) { |
| 284 | + return $status; |
288 | 285 | } |
| 286 | + $exists = $status->value->roleExists( $this->getVar( 'wgDBuser' ) ); |
289 | 287 | |
290 | 288 | // Validate the create checkbox |
291 | 289 | if ( $this->canCreateAccounts() && !$same && !$exists ) { |