tmpfix: core.database.DatabaseDriver (removed remove vs. local check (may cause errors))
This commit is contained in:
parent
d03d889024
commit
6443dbbf7e
|
@ -114,11 +114,11 @@
|
||||||
try{
|
try{
|
||||||
|
|
||||||
/* (1) If local -> instanciates with local configuration */
|
/* (1) If local -> instanciates with local configuration */
|
||||||
if( !checkdnsrr($_SERVER['SERVER_NAME'], 'NS') )
|
// if( !checkdnsrr($_SERVER['SERVER_NAME'], 'NS') )
|
||||||
self::$instance[$label] = new DatabaseDriver($conf[$label]['local']['host'], $conf[$label]['local']['dbname'], $conf[$label]['local']['user'], $conf[$label]['local']['password']);
|
self::$instance[$label] = new DatabaseDriver($conf[$label]['local']['host'], $conf[$label]['local']['dbname'], $conf[$label]['local']['user'], $conf[$label]['local']['password']);
|
||||||
/* (2) If Remote -> instanciates with Remote configuration */
|
/* (2) If Remote -> instanciates with Remote configuration */
|
||||||
else
|
// else
|
||||||
self::$instance[$label] = new DatabaseDriver($conf[$label]['remote']['host'], $conf[$label]['remote']['dbname'], $conf[$label]['remote']['user'], $conf[$label]['remote']['password']);
|
// self::$instance[$label] = new DatabaseDriver($conf[$label]['remote']['host'], $conf[$label]['remote']['dbname'], $conf[$label]['remote']['user'], $conf[$label]['remote']['password']);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue