Permalink
Browse files

MDL-20366 mod/label output now wrapped in DIV instead of SPAN - XHTML…

… strict fix (thanks Andrea Bicciolo)
  • Loading branch information...
1 parent c1e19bd commit 8a436292d87d20d60ade59880948478de4f8750d @skodak skodak committed Oct 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
@@ -1380,15 +1380,15 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
}
if ($mod->modname == "label") {
- echo "<span class=\"";
+ echo "<div class=\"";
if (!$mod->visible) {
echo 'dimmed_text';
} else {
echo 'label';
}
echo '">';
echo format_text($extra, FORMAT_HTML, $labelformatoptions);
- echo "</span>";
+ echo "</div>";
if (!empty($CFG->enablegroupings) && !empty($mod->groupingid) && has_capability('moodle/course:managegroups', get_context_instance(CONTEXT_COURSE, $course->id))) {
if (!isset($groupings)) {
$groupings = groups_get_all_groupings($course->id);

0 comments on commit 8a43629

Please sign in to comment.