Skip to content

Commit

Permalink
Merge branch 'MDL-34742-23' of git://github.com/FMCorz/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_23_STABLE
  • Loading branch information
danpoltawski committed Aug 21, 2012
2 parents 8172f3b + 054bcf6 commit ed22220
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/blocklib.php
Expand Up @@ -457,6 +457,12 @@ public function region_completely_docked($region, $output) {
if (!$this->page->theme->enable_dock) { if (!$this->page->theme->enable_dock) {
return false; return false;
} }

// Do not dock the region when the user attemps to move a block.
if ($this->movingblock) {
return false;
}

$this->check_is_loaded(); $this->check_is_loaded();
$this->ensure_content_created($region, $output); $this->ensure_content_created($region, $output);
foreach($this->visibleblockcontent[$region] as $instance) { foreach($this->visibleblockcontent[$region] as $instance) {
Expand Down

0 comments on commit ed22220

Please sign in to comment.