Merged prettier error from stable

This commit is contained in:
moodler 2004-10-15 08:47:12 +00:00
parent 6eee2203bc
commit 53f39b328c

View file

@ -92,18 +92,14 @@ global $THEME;
$dbconnected = $db->Connect($CFG->dbhost,$CFG->dbuser,$CFG->dbpass,$CFG->dbname); $dbconnected = $db->Connect($CFG->dbhost,$CFG->dbuser,$CFG->dbpass,$CFG->dbname);
} }
if (! $dbconnected) { if (! $dbconnected) {
echo '<font color="#990000">'; echo '<table align="center"><tr>';
echo '<p>Error: Moodle could not connect to the database.</p>'; echo '<td style="color:#990000; text-align:center; font-size:large; border-width:1px; '.
echo '<p>It\'s possible the database itself is just not working at the moment.</p>'; ' border-color:#000000; border-style:solid; border-radius: 20px; border-collapse: collapse; '.
echo '<p>The admin should ' -moz-border-radius: 20px; padding: 15px">';
also check that the database details have been correctly specified in config.php</p>'; echo '<p>Error: Database connection failed.</p>';
echo '<p>Database host: '. $CFG->dbhost .'<br />'; echo '<p>It is possible that the database is overloaded or otherwise not running properly.</p>';
echo 'Database name: '. $CFG->dbname .'<br />'; echo '<p>The site administrator should also check that the database details have been correctly specified in config.php</p>';
echo 'Database user: '. $CFG->dbuser .'<br />'; echo '</td></tr></table>';
if (!isset($CFG->dbpersist)) {
echo '<p>The admin should also try setting this in config.php: $CFG->dbpersist = false; </p>';
}
echo '</font>';
die; die;
} }