Revision: 53786
Author:   ialex
Date:     2009-07-26 20:09:14 +0000 (Sun, 26 Jul 2009)

Log Message:
-----------
* (bug 19479) Show proper error message when unable to connect to PostgreSQL 
database with username/password in MediaWiki's setup

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/config/index.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2009-07-26 19:31:24 UTC (rev 53785)
+++ trunk/phase3/RELEASE-NOTES  2009-07-26 20:09:14 UTC (rev 53786)
@@ -336,6 +336,8 @@
 * (bug 18799) Special:Userlogin now handles correctly the returnto parameter
   to not link back to Special:Userlogout when user's language isn't the same as
   content's language
+* (bug 19479) Show proper error message when unable to connect to PostgreSQL
+  database with username/password in MediaWiki's setup
 
 == API changes in 1.16 ==
 

Modified: trunk/phase3/config/index.php
===================================================================
--- trunk/phase3/config/index.php       2009-07-26 19:31:24 UTC (rev 53785)
+++ trunk/phase3/config/index.php       2009-07-26 20:09:14 UTC (rev 53786)
@@ -1047,6 +1047,10 @@
                        $wgDatabase = $dbc->newFromParams($wgDBserver, 
$wgDBuser, $wgDBpassword, $wgDBname, 1);
                        if (!$wgDatabase->isOpen()) {
                                print " error: " . htmlspecialchars( 
$wgDatabase->lastError() ) . "</li>\n";
+                               $errs["DBserver"] = "Could not connect to 
database as user";
+                               $errs["DBuser"] = "Check username";
+                               $errs["DBpassword"] = "and password";
+                               continue;
                        } else {
                                $myver = $wgDatabase->getServerVersion();
                        }



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to