Merge branch 'feature/MDL-56830' of https://github.com/fwsl/moodle
This commit is contained in:
@@ -420,6 +420,7 @@ class block_manager {
|
||||
if (!in_array($block->name, $undeletableblocktypes)) {
|
||||
$undeletableblocktypes[] = $block->name;
|
||||
set_config('undeletableblocktypes', implode(',', $undeletableblocktypes));
|
||||
add_to_config_log('block_protect', "0", "1", $block->name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -445,6 +446,7 @@ class block_manager {
|
||||
if (in_array($block->name, $undeletableblocktypes)) {
|
||||
$undeletableblocktypes = array_diff($undeletableblocktypes, array($block->name));
|
||||
set_config('undeletableblocktypes', implode(',', $undeletableblocktypes));
|
||||
add_to_config_log('block_protect', "1", "0", $block->name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user