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

This commit is contained in:
Rajesh Taneja
2012-10-04 17:25:45 +08:00
parent 5d6285c220
commit 2bb1d1fbb8
+3 -1
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;
}