showing an error-message, if we cant connect to the DB

This commit is contained in:
Ralf Becker 2004-08-14 17:21:45 +00:00
parent 8a1dacc95f
commit d4f1a3f87c

View File

@ -165,7 +165,7 @@
switch($GLOBALS['phpgw_info']['setup']['stage']['db']) switch($GLOBALS['phpgw_info']['setup']['stage']['db'])
{ {
case 1: case 1:
$setup_tpl->set_var('dbnotexist',lang('Your Database is not working!')); $setup_tpl->set_var('dbnotexist',lang('Your Database is not working!').':<p>'.$GLOBALS['phpgw_setup']->db->Error);
$setup_tpl->set_var('makesure',lang('makesure')); $setup_tpl->set_var('makesure',lang('makesure'));
$setup_tpl->set_var('notcomplete',lang('not complete')); $setup_tpl->set_var('notcomplete',lang('not complete'));
$setup_tpl->set_var('oncesetup',lang('Once the database is setup correctly')); $setup_tpl->set_var('oncesetup',lang('Once the database is setup correctly'));