Skip to content
Browse files

MDL-32218 Blocks: allowblockstodock is also checked for region dock s…

…tatus
  • Loading branch information...
1 parent 5d6285c commit 2bb1d1fbb8f131eb4fb6bc4d27c1c7e25d59922d @rajeshtaneja rajeshtaneja committed Oct 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/blocklib.php
View
4 lib/blocklib.php
@@ -454,7 +454,9 @@ public function add_pretend_block($bc, $region) {
* @return bool True if all of the blocks within that region are docked
*/
public function region_completely_docked($region, $output) {
- if (!$this->page->theme->enable_dock) {
+ global $CFG;
+ // If theme doesn't allow docking or allowblockstodock is not set, then return.
+ if (!$this->page->theme->enable_dock || empty($CFG->allowblockstodock)) {
return false;
}

0 comments on commit 2bb1d1f

Please sign in to comment.
Something went wrong with that request. Please try again.