Settings: Change old configuration path to migrate selected values - refs BT#21301

pull/5040/head
christian 11 months ago
parent 42c00b059f
commit ba00f1c358
  1. 2
      src/CoreBundle/Migrations/Schema/V200/Version20230216122900.php

@ -1275,7 +1275,7 @@ class Version20230216122900 extends AbstractMigrationChamilo
$container = $this->getContainer();
$kernel = $container->get('kernel');
$rootPath = $kernel->getProjectDir();
$oldConfigPath = $rootPath.'/config/configuration.php';
$oldConfigPath = $rootPath.'/app/config/configuration.php';
$configFileLoaded = \in_array($oldConfigPath, get_included_files(), true);
if (!$configFileLoaded) {
include_once $oldConfigPath;

Loading…
Cancel
Save