Skip to content

Commit

Permalink
MDL-68792 theme_boost: Do not move blocks on embedded layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
golenkovm committed Dec 18, 2020
1 parent 8325c83 commit b01eb0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/outputrenderers.php
Expand Up @@ -1840,7 +1840,9 @@ public function blocks_for_region($region, $fakeblocksonly = false) {
$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.');
}
Expand Down

0 comments on commit b01eb0b

Please sign in to comment.