mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
course-ajax MDL-22645 Minor tweaking of label output to ensure it is always contained in a div
This commit is contained in:
parent
424a353056
commit
722b4ce18c
@ -1355,11 +1355,11 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||
if ($accessiblebutdim || !$mod->uservisible) {
|
||||
echo '<div class="dimmed_text"><span class="accesshide">'.
|
||||
get_string('hiddenfromstudents').'</span>';
|
||||
} else {
|
||||
echo '<div>';
|
||||
}
|
||||
echo format_text($extra, FORMAT_HTML, $labelformatoptions);
|
||||
if ($accessiblebutdim || !$mod->uservisible) {
|
||||
echo "</div>";
|
||||
}
|
||||
echo "</div>";
|
||||
if (!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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user