mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Fix upgrade process
This commit is contained in:
@@ -58,12 +58,12 @@ class module_console_systemUpgrade extends Command
|
|||||||
|
|
||||||
if ($continue == 'y') {
|
if ($continue == 'y') {
|
||||||
try {
|
try {
|
||||||
$connexionInc = new \SplFileInfo($old_connexion_file, true);
|
$connexionInc = new \SplFileInfo($old_connexion_file);
|
||||||
$configInc = new \SplFileInfo($old_config_file, true);
|
$configInc = new \SplFileInfo($old_config_file);
|
||||||
|
|
||||||
$Core->getConfiguration()->upgradeFromOldConf($configInc, $connexionInc);
|
$Core->getConfiguration()->upgradeFromOldConf($configInc, $connexionInc);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
throw new RuntimeException('Error while upgrading : ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException('Phraseanet is not set up');
|
throw new RuntimeException('Phraseanet is not set up');
|
||||||
|
Reference in New Issue
Block a user