]> git.mjollnir.org Git - moodle.git/commitdiff
blocks - MDL-19010 fix bug where blocks did not show up with editing off.
authortjhunt <tjhunt>
Thu, 9 Jul 2009 08:17:23 +0000 (08:17 +0000)
committertjhunt <tjhunt>
Thu, 9 Jul 2009 08:17:23 +0000 (08:17 +0000)
lib/blocklib.php

index 02cb6af8ca46dcb61dc8c5389e00ed2fac88779f..2cca159d1b0a81d110c7a6a55fdda8d3573c0f06 100644 (file)
@@ -261,6 +261,7 @@ class block_manager {
             return false;
         }
         $this->check_is_loaded();
+        $this->ensure_instances_exist($region);
         if ($this->page->user_is_editing() && $this->page->user_can_edit_blocks()) {
             // If editing is on, we need all the block regions visible, for the
             // move blocks UI.