Created
April 3, 2020 16:25
-
-
Save mudrd8mz/4771f0a1a18918050575214ae1e06958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php | |
index 7b705a91be..00bfdc2810 100644 | |
--- a/lib/outputrenderers.php | |
+++ b/lib/outputrenderers.php | |
@@ -1833,6 +1833,13 @@ class core_renderer extends renderer_base { | |
if (empty($zones)) { | |
// There are no zones, probably because there are no blocks. | |
$regions = $this->page->theme->get_all_block_regions(); | |
+ // Append the eventually injected custom regions. | |
+ foreach ($this->page->blocks->get_regions() as $regioninternalname) { | |
+ if (!isset($regions[$regioninternalname])) { | |
+ $regions[$regioninternalname] = $regioninternalname; | |
+ } | |
+ } | |
+ | |
$position = get_string('moveblockinregion', 'block', $regions[$region]); | |
} else { | |
$position = get_string('moveblockbefore', 'block', $zones[0]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment