http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89839

Revision: 89839
Author:   mah
Date:     2011-06-10 18:48:16 +0000 (Fri, 10 Jun 2011)
Log Message:
-----------
Make Pg installer work in the ?\226?\128?\156common?\226?\128?\157 case: follow 
up r89821 so that $exists can be set true if same user is the same for install 
and web.

Modified Paths:
--------------
    trunk/phase3/includes/installer/PostgresInstaller.php

Modified: trunk/phase3/includes/installer/PostgresInstaller.php
===================================================================
--- trunk/phase3/includes/installer/PostgresInstaller.php       2011-06-10 
18:31:44 UTC (rev 89838)
+++ trunk/phase3/includes/installer/PostgresInstaller.php       2011-06-10 
18:48:16 UTC (rev 89839)
@@ -276,15 +276,13 @@
 
                $same = $this->getVar( 'wgDBuser' ) === $this->getVar( 
'_InstallUser' );
 
-               if ( !$same ) {
-                       // Check if the web user exists
-                       // Connect to the database with the install user
-                       $status = $this->getPgConnection( 'create-db' );
-                       if ( !$status->isOK() ) {
-                               return $status;
-                       }
-                       $exists = $status->value->roleExists( $this->getVar( 
'wgDBuser' ) );
+               // Check if the web user exists
+               // Connect to the database with the install user
+               $status = $this->getPgConnection( 'create-db' );
+               if ( !$status->isOK() ) {
+                       return $status;
                }
+               $exists = $status->value->roleExists( $this->getVar( 'wgDBuser' 
) );
 
                // Validate the create checkbox
                if ( $this->canCreateAccounts() && !$same && !$exists ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to