-
Bug
-
Resolution: Fixed
-
Minor
-
1.8.5, 1.9.1
-
None
-
Moodle 1.9.1 (Build: 20080515), PHP 5.2.0, MySQL 5.0.27, RHEL 4
-
MOODLE_18_STABLE, MOODLE_19_STABLE
-
MOODLE_18_STABLE, MOODLE_19_STABLE
This is a minor issue, but it created problems in our custom theme.
Most blocks in Moodle use this XHTML code:
<div class="header"><div class="title"><h2>Upcoming Events</h2>
However, the "Blocks" block,which appears when you turn editing on, and which is used to add blocks to a course, does not follow this scheme. Instead, it looks like this:
<div class="header">Blocks</div>
This causes problems with themes which are expecting the convention used with other blocks (the H2 tag in the other block was apparently added for accessibility reasons). In order to bring this block into line with the others, I suggest the attached patch, which adds the appropriate div and H2 tags to the header div.