From cc9f9596dcecdbeea5d95c82b075ee3f08a3c46f Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 26 Jan 2016 12:55:22 +0100 Subject: [PATCH] Replace api_get_configuration_value function --- app/Migrations/AbstractMigrationChamilo.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Migrations/AbstractMigrationChamilo.php b/app/Migrations/AbstractMigrationChamilo.php index beb34d7262..fc7843c9df 100644 --- a/app/Migrations/AbstractMigrationChamilo.php +++ b/app/Migrations/AbstractMigrationChamilo.php @@ -33,11 +33,11 @@ abstract class AbstractMigrationChamilo extends AbstractMigration if (empty($this->manager)) { $dbParams = array( 'driver' => 'pdo_mysql', - 'host' => api_get_configuration_value('db_host'), - 'user' => api_get_configuration_value('db_user'), - 'password' => api_get_configuration_value('db_password'), - 'dbname' => api_get_configuration_value('main_database'), - 'port' => api_get_configuration_value('db_port') + 'host' => $this->getConfigurationValue('db_host'), + 'user' => $this->getConfigurationValue('db_user'), + 'password' => $this->getConfigurationValue('db_password'), + 'dbname' => $this->getConfigurationValue('main_database'), + 'port' => $this->getConfigurationValue('db_port') ); $database = new \Database(); $database->connect(