Permalink
Browse files

Icons for activities should use $CFG->modpixpath so custom icons work

  • Loading branch information...
1 parent 482b6e6 commit e845dee27dd2acc2fefa1d6fa9ead3c3e008fc7a moodler committed Oct 17, 2003
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
@@ -559,7 +559,7 @@ function print_section_block($heading, $course, $section, $mods, $modnames, $mod
$modicon[] = "";
$moddata[] = format_text($extra, FORMAT_HTML).$editbuttons;
} else {
- $modicon[] = "<img src=\"$CFG->wwwroot/mod/$mod->modname/icon.gif\"".
+ $modicon[] = "<img src=\"$CFG->modpixpath/$mod->modname/icon.gif\"".
" height=\"16\" width=\"16\" alt=\"$mod->modfullname\">";
$moddata[] = "<a title=\"$mod->modfullname\" $linkcss $extra".
"href=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">$instancename</a>".
@@ -654,7 +654,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
} else { // Normal activity
$linkcss = $mod->visible ? "" : " class=\"dimmed\" ";
- echo "<img src=\"$CFG->wwwroot/mod/$mod->modname/icon.gif\"".
+ echo "<img src=\"$CFG->modpixpath/$mod->modname/icon.gif\"".
" height=16 width=16 alt=\"$mod->modfullname\">".
" <font size=2><a title=\"$mod->modfullname\" $linkcss $extra".
" href=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">$instancename</a></font>";

0 comments on commit e845dee

Please sign in to comment.