mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
theme / weblib: MDL-14400 Setting $THEME->makenavmenulist = true causes a php notice
This commit is contained in:
parent
9af77e9d17
commit
996c1a6f86
@ -5438,7 +5438,7 @@ function navmenulist($course, $sections, $modinfo, $strsection, $strjumpto, $wid
|
||||
$mod->name = '('.$mod->name.')';
|
||||
}
|
||||
$class = 'activity '.$mod->modname;
|
||||
$class .= ($cmid == $mod->cm) ? ' selected' : '';
|
||||
$class .= ($cmid == $mod->id) ? ' selected' : '';
|
||||
$menu[] = '<li class="'.$class.'">'.
|
||||
'<img src="'.$CFG->modpixpath.'/'.$mod->modname.'/icon.gif" alt="" />'.
|
||||
'<a href="'.$CFG->wwwroot.'/mod/'.$url.'">'.$mod->name.'</a></li>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user