From: tjhunt Date: Thu, 9 Jul 2009 08:17:23 +0000 (+0000) Subject: blocks - MDL-19010 fix bug where blocks did not show up with editing off. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fc2593fef91be614a5c5dae71601a5f7cc0e0a9d;p=moodle.git blocks - MDL-19010 fix bug where blocks did not show up with editing off. --- diff --git a/lib/blocklib.php b/lib/blocklib.php index 02cb6af8ca..2cca159d1b 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -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.