equal
deleted
inserted
replaced
312 |
312 |
313 $result = $dbal->connect(true, $dbhost, $dbuser, $dbpasswd, $dbname); |
313 $result = $dbal->connect(true, $dbhost, $dbuser, $dbpasswd, $dbname); |
314 if ( !$result ) |
314 if ( !$result ) |
315 { |
315 { |
316 if ( !$silent ) |
316 if ( !$silent ) |
|
317 { |
317 echo parse_shellcolor_string($lang->get('cli_test_fail')) . "\n"; |
318 echo parse_shellcolor_string($lang->get('cli_test_fail')) . "\n"; |
|
319 echo "[$driver] " . $dbal->sql_error() . "\n"; |
|
320 } |
318 installer_fail($lang->get('cli_err_db_connect_fail')); |
321 installer_fail($lang->get('cli_err_db_connect_fail')); |
319 } |
322 } |
320 |
323 |
321 if ( !$silent ) |
324 if ( !$silent ) |
322 echo parse_shellcolor_string($lang->get('cli_test_pass')) . "\n"; |
325 echo parse_shellcolor_string($lang->get('cli_test_pass')) . "\n"; |