mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-mdl-32218' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
ea0a092e99
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user