mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-28107 course enrolment icon: Fixed logged in user enrolment icons
This commit is contained in:
parent
6884b598f3
commit
e877160d46
@ -2472,7 +2472,7 @@ function print_course($course, $highlightterms = '') {
|
||||
$course->summaryformat = FORMAT_MOODLE;
|
||||
}
|
||||
echo highlight($highlightterms, format_text($course->summary, $course->summaryformat, $options, $course->id));
|
||||
if ((!isloggedin() || is_siteadmin()) && $icons = enrol_get_course_info_icons($course)) {
|
||||
if ($icons = enrol_get_course_info_icons($course)) {
|
||||
echo html_writer::start_tag('div', array('class'=>'enrolmenticons'));
|
||||
foreach ($icons as $icon) {
|
||||
echo $OUTPUT->render($icon);
|
||||
|
Loading…
x
Reference in New Issue
Block a user