mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-30 02:46:19 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user