Permalink
Browse files

blocks/html MDL-3703 Hide the title of block when none set

This is fixed sensibly in the Moodle 2.0 block api by not displaying the
block header html with empty content..
  • Loading branch information...
1 parent 4f7212a commit 0e9e95a9f64d4e7754a1ac24ec4a37afb3df6290 @danpoltawski danpoltawski committed Oct 30, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 blocks/html/block_html.php
@@ -91,5 +91,12 @@ function decode_content_links_caller($restore) {
return true;
}
+
+ /*
+ * Hide the title bar when none set..
+ */
+ function hide_header(){
+ return empty($this->config->title);
+ }
}
?>

0 comments on commit 0e9e95a

Please sign in to comment.