Skip to content

Commit

Permalink
MDL-32218 Blocks: allowblockstodock is also checked for region dock s…
Browse files Browse the repository at this point in the history
…tatus
  • Loading branch information
Rajesh Taneja committed Oct 4, 2012
1 parent 5d6285c commit 2bb1d1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/blocklib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ public function add_pretend_block($bc, $region) {
* @return bool True if all of the blocks within that region are docked * @return bool True if all of the blocks within that region are docked
*/ */
public function region_completely_docked($region, $output) { 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; return false;
} }


Expand Down

0 comments on commit 2bb1d1f

Please sign in to comment.