From cdc7db51f8d3c12d321fbf068779e2c39ab0d3bf Mon Sep 17 00:00:00 2001 From: "tristan.champomier" Date: Mon, 13 Dec 2021 13:26:26 +0100 Subject: [PATCH] Fixed issue #96. --- config/config.data_source.php.install | 2 ++ lib/system/system_control/systemcontrol.php | 2 +- lib/system/system_data_source/database/mypdo.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/config.data_source.php.install b/config/config.data_source.php.install index 541a0c0..fcfc5f6 100755 --- a/config/config.data_source.php.install +++ b/config/config.data_source.php.install @@ -38,6 +38,8 @@ define ("DATA_SOURCE_DB_DRIVER", "mypdo"); define ("DATA_SOURCE_DB_TYPE", "{_DBCONNECTOR_}"); /* Serveur de Base de Données */ define ("DATA_SOURCE_DB_SERVER", "{_DBHOST_}"); +/* Port du serveur de Base de Données */ +define ("DATA_SOURCE_DB_PORT", {_DBPORT_}); /* Compte Utilisateur de la base de données */ define ("DATA_SOURCE_DB_USER", "{_DBUSER_}"); /* Mot de passe de la Base de données */ diff --git a/lib/system/system_control/systemcontrol.php b/lib/system/system_control/systemcontrol.php index 6df12a1..3aeddcc 100755 --- a/lib/system/system_control/systemcontrol.php +++ b/lib/system/system_control/systemcontrol.php @@ -884,7 +884,7 @@ var $currentCoordinationObject=null; switch ( $dbdriver ) { case "mypdo": - $GLOBALS['SYSTEM_DATABASE_CONN']=new myPdo( DATA_SOURCE_DB_TYPE, DATA_SOURCE_DB_SERVER, DATA_SOURCE_DB_USER, DATA_SOURCE_DB_PASSWORD, DATA_SOURCE_DB_DATABASE, DATA_SOURCE_DB_CHARSET ); + $GLOBALS['SYSTEM_DATABASE_CONN']=new myPdo( DATA_SOURCE_DB_TYPE, DATA_SOURCE_DB_SERVER, DATA_SOURCE_DB_PORT, DATA_SOURCE_DB_USER, DATA_SOURCE_DB_PASSWORD, DATA_SOURCE_DB_DATABASE, DATA_SOURCE_DB_CHARSET ); break; // case "mysql3": // $GLOBALS['SYSTEM_DATABASE_CONN']=new MySQL3( DATA_SOURCE_SQL_SERVER, DATA_SOURCE_SQL_USER, DATA_SOURCE_SQL_PASSWORD, DATA_SOURCE_SQL_DATABASE); diff --git a/lib/system/system_data_source/database/mypdo.php b/lib/system/system_data_source/database/mypdo.php index f2fe2a1..3c5134b 100755 --- a/lib/system/system_data_source/database/mypdo.php +++ b/lib/system/system_data_source/database/mypdo.php @@ -120,7 +120,7 @@ class mypdo extends Database $this->user = $user; $this->password = $password; $this->server = $server; - $this->port = $port; + $this->dbport = $port; $this->dbname = $database; $this->dbcharset = $charset;