From: moodler Date: Fri, 15 Oct 2004 08:47:12 +0000 (+0000) Subject: Merged prettier error from stable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=53f39b328ce122d728e31b15e48d63c541e1f340;p=moodle.git Merged prettier error from stable --- diff --git a/lib/setup.php b/lib/setup.php index 4415958239..0eb29ecb87 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -92,18 +92,14 @@ global $THEME; $dbconnected = $db->Connect($CFG->dbhost,$CFG->dbuser,$CFG->dbpass,$CFG->dbname); } if (! $dbconnected) { - echo ''; - echo '

Error: Moodle could not connect to the database.

'; - echo '

It\'s possible the database itself is just not working at the moment.

'; - echo '

The admin should - also check that the database details have been correctly specified in config.php

'; - echo '

Database host: '. $CFG->dbhost .'
'; - echo 'Database name: '. $CFG->dbname .'
'; - echo 'Database user: '. $CFG->dbuser .'
'; - if (!isset($CFG->dbpersist)) { - echo '

The admin should also try setting this in config.php: $CFG->dbpersist = false;

'; - } - echo '
'; + echo ''; + echo '
'; + echo '

Error: Database connection failed.

'; + echo '

It is possible that the database is overloaded or otherwise not running properly.

'; + echo '

The site administrator should also check that the database details have been correctly specified in config.php

'; + echo '
'; die; }