Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use $CFG->pixpath
  • Loading branch information
moodler committed Mar 14, 2005
1 parent f96660f commit f21eb04
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions blocks/course_list/block_course_list.php
Expand Up @@ -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'){
Expand Down

0 comments on commit f21eb04

Please sign in to comment.