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

Revision: 84450
Author:   greg
Date:     2011-03-21 14:59:14 +0000 (Mon, 21 Mar 2011)
Log Message:
-----------
Change the default user from 'root' to 'postgres' if using a PostgreSQL backend.
There may be a better way to do this, so comments welcome.

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

Modified: trunk/phase3/includes/installer/PostgresInstaller.php
===================================================================
--- trunk/phase3/includes/installer/PostgresInstaller.php       2011-03-21 
14:56:30 UTC (rev 84449)
+++ trunk/phase3/includes/installer/PostgresInstaller.php       2011-03-21 
14:59:14 UTC (rev 84450)
@@ -35,6 +35,11 @@
        }
 
        function getConnectForm() {
+               // If this is our first time here, switch the default user 
presented in the form
+               if ( ! $this->getVar('_switchedInstallUser') ) {
+                       $this->setVar('_InstallUser', 'postgres');
+                       $this->setVar('_switchedInstallUser', true);
+               }
                return
                        $this->getTextBox( 'wgDBserver', 'config-db-host', 
array(), $this->parent->getHelpBox( 'config-db-host-help' ) ) .
                        $this->getTextBox( 'wgDBport', 'config-db-port' ) .


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

Reply via email to