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:
Dan Poltawski
2009-10-30 23:36:26 +00:00
parent 4f7212a44c
commit 0e9e95a9f6
+7
View File
@@ -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);
}
}
?>