Change the upgrader so that it never deactivactes the gallery nor the current identity provider modules. Call module::deactive to truly deactivate the module.

This commit is contained in:
Tim Almdal
2009-10-26 09:35:41 -07:00
parent 6fb116c53b
commit e4eedbce22
2 changed files with 14 additions and 11 deletions
+7 -3
View File
@@ -56,9 +56,13 @@ class Upgrader_Controller extends Controller {
access::forbidden();
}
// Upgrade gallery and user first
module::upgrade("gallery");
module::upgrade("user");
$available = module::available();
// Upgrade gallery first
$gallery = $available["gallery"];
if ($gallery->code_version != $gallery->version) {
module::upgrade("gallery");
module::activate("gallery");
}
// Then upgrade the rest
foreach (module::available() as $id => $module) {