From 6443dbbf7e80c41ab9b40280f25aa4392521062b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 29 Nov 2017 12:56:45 +0100 Subject: [PATCH] tmpfix: core.database.DatabaseDriver (removed remove vs. local check (may cause errors)) --- build/database/core/DatabaseDriver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/database/core/DatabaseDriver.php b/build/database/core/DatabaseDriver.php index 70b6146..83007eb 100755 --- a/build/database/core/DatabaseDriver.php +++ b/build/database/core/DatabaseDriver.php @@ -114,11 +114,11 @@ try{ /* (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']); /* (2) If Remote -> instanciates with Remote configuration */ - else - self::$instance[$label] = new DatabaseDriver($conf[$label]['remote']['host'], $conf[$label]['remote']['dbname'], $conf[$label]['remote']['user'], $conf[$label]['remote']['password']); + // else + // self::$instance[$label] = new DatabaseDriver($conf[$label]['remote']['host'], $conf[$label]['remote']['dbname'], $conf[$label]['remote']['user'], $conf[$label]['remote']['password']); return true;