mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 07:41:02 +01:00
Merge branch 'wip-MDL-28292-master' of git://github.com/phalacee/moodle
This commit is contained in:
commit
68bcca4d04
@ -121,4 +121,14 @@ class block_html extends block_base {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The block should only be dockable when the title of the block is not empty
|
||||
* and when parent allows docking.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function instance_can_be_docked() {
|
||||
return (!empty($this->config->title) && parent::instance_can_be_docked());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user