mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-19690 fix some breakage.
This commit is contained in:
parent
5ef444007d
commit
42d5737a94
3 changed files with 5 additions and 8 deletions
|
@ -1333,9 +1333,9 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
|||
if (!empty($customicon)) {
|
||||
if (substr($customicon, 0, 4) === 'mod/') {
|
||||
list($modname, $iconname) = explode('/', substr($customicon, 4), 2);
|
||||
$icon = $OUTPUT->mod_icon_url($iconname, $modname);
|
||||
$icon = $OUTPUT->mod_icon_url(str_replace(array('.gif', '.png'), '', $iconname), $modname);
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url($customicon);
|
||||
$icon = $OUTPUT->old_icon_url(str_replace(array('.gif', '.png'), '', $customicon));
|
||||
}
|
||||
} else {
|
||||
$icon = "" . $OUTPUT->mod_icon_url('icon', $mod->modname) . "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue