Skip to content

Commit

Permalink
blocks/html MDL-3703 Hide the title of block when none set
Browse files Browse the repository at this point in the history
This is fixed sensibly in the Moodle 2.0 block api by not displaying the
block header html with empty content..
  • Loading branch information
danpoltawski committed Oct 30, 2009
1 parent 4f7212a commit 0e9e95a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blocks/html/block_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.