Skip to content
Browse files

Use $CFG->pixpath

  • Loading branch information...
1 parent f96660f commit f21eb048cd9d6ff3c22f366d67126cba9198acd0 moodler committed
Showing with 3 additions and 8 deletions.
  1. +3 −8 blocks/course_list/block_course_list.php
View
11 blocks/course_list/block_course_list.php
@@ -22,14 +22,9 @@ function get_content() {
$this->content->icons = array();
$this->content->footer = '';
- if (empty($THEME->custompix)) {
- $icon = "<img src=\"$CFG->wwwroot/pix/i/course.gif\"".
- " height=\"16\" width=\"16\" alt=\"".get_string("course")."\" />";
- } else {
- $icon = "<img src=\"$CFG->wwwroot/theme/$CFG->theme/pix/i/course.gif\"".
- " height=\"16\" width=\"16\" alt=\"".get_string("course")."\" />";
- }
-
+ $icon = "<img src=\"$CFG->pixpath/i/course.gif\"".
+ " height=\"16\" width=\"16\" alt=\"".get_string("course")."\" />";
+
$adminseesall = true;
if (isset($CFG->block_course_list_adminview)) {
if ( $CFG->block_course_list_adminview == 'own'){

0 comments on commit f21eb04

Please sign in to comment.
Something went wrong with that request. Please try again.