I 'm fed up with the crappy HTML for blocks that keeps giving us

no end of trouble (bug 1718 is just the tip of the iceberg).

Rehauling things... these two divs are superfluous.
This commit is contained in:
defacer 2005-05-09 23:37:28 +00:00
parent 88bbf2efff
commit 4fad36189f
2 changed files with 2 additions and 4 deletions

View File

@ -123,8 +123,7 @@ class block_site_main_menu extends block_list {
}
if ($isediting && $modnames) {
$this->content->footer = '<div style="text-align: right;">'.
print_section_add_menus($course, 0, $modnames, true, true).'</div>';
$this->content->footer = print_section_add_menus($course, 0, $modnames, true, true);
} else {
$this->content->footer = '';
}

View File

@ -116,8 +116,7 @@ class block_social_activities extends block_list {
}
if ($isediting && $modnames) {
$this->content->footer = '<div style="text-align: right;">'.
print_section_add_menus($course, 0, $modnames, true, true).'</div>';
$this->content->footer = print_section_add_menus($course, 0, $modnames, true, true);
} else {
$this->content->footer = '';
}