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(