Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-28292 - Blocks - Patch supplied by Chris Follin to fix blocks wit…

…h empty titles that disappear when docked
  • Loading branch information...
commit 930bbe97c6ac952c0abbbb5d3e1b629442d38ccc 1 parent f08f22c
Jason Fowler phalacee authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 blocks/html/block_html.php
10 blocks/html/block_html.php
@@ -121,4 +121,14 @@ function content_is_trusted() {
121 121
122 122 return true;
123 123 }
  124 +
  125 + /**
  126 + * The block should only be dockable when the title of the block is not empty
  127 + * and when parent allows docking.
  128 + *
  129 + * @return bool
  130 + */
  131 + public function instance_can_be_docked() {
  132 + return (!empty($this->config->title) && parent::instance_can_be_docked());
  133 + }
124 134 }

0 comments on commit 930bbe9

Please sign in to comment.
Something went wrong with that request. Please try again.