Merge branch 'wip-MDL-28292-stable20' of git://github.com/phalacee/moodle into MOODLE_20_STABLE

This commit is contained in:
Sam Hemelryk
2011-11-07 12:24:15 +13:00
+10
View File
@@ -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());
}
}