HOR-3851
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
|
||||
if (defined('PATH_DB') && defined('SYS_SYS')) {
|
||||
|
||||
if (!file_exists(PATH_DB . SYS_SYS . '/db.php'))
|
||||
throw new Exception("Could not find db.php in current workspace " . SYS_SYS);
|
||||
if (!file_exists(PATH_DB . config("sys_sys") . '/db.php'))
|
||||
throw new Exception("Could not find db.php in current workspace " . config("sys_sys"));
|
||||
|
||||
require_once(PATH_DB . SYS_SYS . '/db.php');
|
||||
require_once(PATH_DB . config("sys_sys") . '/db.php');
|
||||
//to do: enable for other databases
|
||||
$dbType = DB_ADAPTER;
|
||||
$dsn = DB_ADAPTER . '://' . DB_USER . ':' . urlencode(DB_PASS) . '@' . DB_HOST . '/' . DB_NAME;
|
||||
|
||||
Reference in New Issue
Block a user