cleanup: remove redundant condition, already checked above
authorIlmari Karonen <vyznev@users.mediawiki.org>
Mon, 17 Jul 2006 21:36:19 +0000 (21:36 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Mon, 17 Jul 2006 21:36:19 +0000 (21:36 +0000)
maintenance/update.php

index 8643aa7..b1ab56b 100644 (file)
@@ -37,11 +37,7 @@ $wgDatabase = $dbc->newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpasswo
 if( !$wgDatabase->isOpen() ) {
        # Appears to have failed
        echo( "A connection to the database could not be established. Check the\n" );
-       # Let's be a bit clever and guess at what's wrong
-       if( isset( $wgDBadminuser ) && isset( $wgDBadminpassword ) ) {
-               # Tell the user the value(s) are wrong
-               echo( 'values of $wgDBadminuser and $wgDBadminpassword.' . "\n" );
-       }
+       echo( "values of \$wgDBadminuser and \$wgDBadminpassword.\n" );
        exit();
 }