Replace api_get_configuration_value function

1.10.x
Julio Montoya 11 years ago
parent cbf3866a31
commit cc9f9596dc
  1. 10
      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(

Loading…
Cancel
Save