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..
This commit is contained in:
@@ -91,5 +91,12 @@ class block_html extends block_base {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Hide the title bar when none set..
|
||||
*/
|
||||
function hide_header(){
|
||||
return empty($this->config->title);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user