Merge branch 'feature/MDL-56830' of https://github.com/fwsl/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2016-12-13 12:00:46 +01:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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);
}
}