Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-MDL-28292-stable21' of git://github.com/phalacee/mo…

…odle into MOODLE_21_STABLE
  • Loading branch information...
commit fb09c60c5e22f9818050ee05f715c26686147c4a 2 parents ace2712 + 930bbe9
Sam Hemelryk samhemelryk authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 blocks/html/block_html.php
10 blocks/html/block_html.php
View
@@ -121,4 +121,14 @@ function content_is_trusted() {
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());
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.