diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php
index f94799a6baf..3b2faff9885 100644
--- a/blocks/course_list/block_course_list.php
+++ b/blocks/course_list/block_course_list.php
@@ -22,14 +22,9 @@ class block_course_list extends block_list {
$this->content->icons = array();
$this->content->footer = '';
- if (empty($THEME->custompix)) {
- $icon = "
wwwroot/pix/i/course.gif\"".
- " height=\"16\" width=\"16\" alt=\"".get_string("course")."\" />";
- } else {
- $icon = "
wwwroot/theme/$CFG->theme/pix/i/course.gif\"".
- " height=\"16\" width=\"16\" alt=\"".get_string("course")."\" />";
- }
-
+ $icon = "
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'){