fix
This commit is contained in:
parent
23d26e9cd9
commit
17b0cd864c
|
@ -102,7 +102,7 @@
|
||||||
try{
|
try{
|
||||||
|
|
||||||
/* (1) If local -> instanciates with local configuration */
|
/* (1) If local -> instanciates with local configuration */
|
||||||
if( !checkdnsrr($_SERVER['SERVER_NAME'], 'NS') )
|
if( $_SERVER['SERVER_NAME'] == 'localhost' || !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
|
||||||
|
|
Loading…
Reference in New Issue