From f21eb048cd9d6ff3c22f366d67126cba9198acd0 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 14 Mar 2005 13:48:43 +0000 Subject: [PATCH] Use $CFG->pixpath --- blocks/course_list/block_course_list.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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'){