mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-13353 Course page does not validate when a lable containing <p> tags is hidden; merged from MOODLE_19_STABLE
This commit is contained in:
parent
cf34d0eaa2
commit
9009a99006
@ -1370,11 +1370,11 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||
|
||||
if ($mod->modname == "label") {
|
||||
if (!$mod->visible) {
|
||||
echo "<span class=\"dimmed_text\">";
|
||||
echo "<div class=\"dimmed_text\">";
|
||||
}
|
||||
echo format_text($extra, FORMAT_HTML, $labelformatoptions);
|
||||
if (!$mod->visible) {
|
||||
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user