mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Fix upgrade
This commit is contained in:
@@ -139,9 +139,11 @@ class patch_3807 implements patchInterface
|
||||
|
||||
private function migrateConnexions(array &$conf)
|
||||
{
|
||||
$data = $this->yaml->parse($this->connexionsYaml);
|
||||
if (is_file($this->connexionsYaml)) {
|
||||
$data = $this->yaml->parse($this->connexionsYaml);
|
||||
|
||||
$conf['main']['database'] = $data['main_connexion'];
|
||||
$conf['main']['database-test'] = $data['test_connexion'];
|
||||
$conf['main']['database'] = $data['main_connexion'];
|
||||
$conf['main']['database-test'] = $data['test_connexion'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user