Commit 4fad3618 authored by defacer's avatar defacer
Browse files

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.
parent 88bbf2ef
......@@ -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 = '';
}
......
......@@ -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 = '';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment