Fixed console error 500 when mysql is not running
This commit is contained in:
parent
1dd8f630f8
commit
01a106e9f6
|
@ -81,7 +81,7 @@ function db_connect($host = null, $db = null, $user = null, $pass = null, $port
|
||||||
$ownDir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
|
$ownDir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
|
||||||
$config['homedir'] = $ownDir;
|
$config['homedir'] = $ownDir;
|
||||||
$login_screen = 'error_authconfig';
|
$login_screen = 'error_authconfig';
|
||||||
require($config['homedir'] . '/general/error_screen.php');
|
require($config['homedir'] . '../general/error_screen.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else if ($error == 0) {
|
else if ($error == 0) {
|
||||||
|
|
Loading…
Reference in New Issue