Fix upgrade process

This commit is contained in:
Romain Neutron
2012-09-04 11:49:02 +02:00
parent 348581dd1a
commit 03e1beb879

View File

@@ -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');