MDL-68792 theme_boost: Do not move blocks on embedded layout.
authorMikhail Golenkov <mikhailgolenkov@catalyst-au.net>
Tue, 25 Aug 2020 00:04:25 +0000 (10:04 +1000)
committerMikhail Golenkov <mikhailgolenkov@catalyst-au.net>
Fri, 18 Dec 2020 01:06:03 +0000 (12:06 +1100)
lib/outputrenderers.php

index e2e5770..abfb603 100644 (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.');
             }