mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-05 14:40:44 -04:00
Change the keys of the block arrays in block manager to be a md5 hash of module_name:block_id. This allows easier lookup of blocks to remove when modules
are being deactivated. Change the module activation/deactivation to call (activate|deactivate)_blocks instead of just the sidebar blocks. This insures that when a module is deactivated any admin dashboard blocks are removed as well the site sideboard blocks. Fix for ticket #876.
This commit is contained in:
@@ -211,7 +211,7 @@ class module_Core {
|
||||
|
||||
graphics::activate_rules($module_name);
|
||||
|
||||
block_manager::activate_sidebar_blocks($module_name);
|
||||
block_manager::activate_blocks($module_name);
|
||||
|
||||
log::success(
|
||||
"module", t("Activated module %module_name", array("module_name" => $module_name)));
|
||||
@@ -238,7 +238,7 @@ class module_Core {
|
||||
|
||||
graphics::deactivate_rules($module_name);
|
||||
|
||||
block_manager::deactivate_sidebar_blocks($module_name);
|
||||
block_manager::deactivate_blocks($module_name);
|
||||
|
||||
log::success(
|
||||
"module", t("Deactivated module %module_name", array("module_name" => $module_name)));
|
||||
|
||||
Reference in New Issue
Block a user