MDL-68792 theme_boost: Do not move blocks on embedded layout.

This commit is contained in:
Mikhail Golenkov
2020-12-18 12:07:26 +11:00
parent 64891ca0c7
commit 478852d08f
+3 -1
View File
@@ -1840,7 +1840,9 @@ class core_renderer extends renderer_base {
$output .= $this->block($bc, $region);
$lastblock = $bc->title;
} else if ($bc instanceof block_move_target) {
$output .= $this->block_move_target($bc, $zones, $lastblock, $region);
if (!$fakeblocksonly) {
$output .= $this->block_move_target($bc, $zones, $lastblock, $region);
}
} else {
throw new coding_exception('Unexpected type of thing (' . get_class($bc) . ') found in list of block contents.');
}