Merge branch 'wip-mdl-32218' of git://github.com/rajeshtaneja/moodle

This commit is contained in:
Dan Poltawski 2012-10-16 14:35:28 +08:00
commit ea0a092e99

View File

@ -454,7 +454,9 @@ class block_manager {
* @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;
}