FIxed pixpath usage

This commit is contained in:
moodler 2004-07-30 06:34:11 +00:00
parent cc879d749b
commit 3e1fc10f9a

View File

@ -27,23 +27,20 @@ class CourseBlock_course_summary extends MoodleBlock {
$this->content->text = format_text($this->course->summary, FORMAT_HTML);
if (isediting($this->course->id)) {
if (empty($this->course->category)) {
$editpage = "$CFG->wwwroot/admin/site.php";
$editpage = $CFG->wwwroot.'/admin/site.php';
} else {
$editpage = $CFG->wwwroot.'/course/edit.php?id='.$this->course->id;
}
if (empty($THEME->custompix)) {
$pixpath = $CFG->wwwroot.'/pix';
} else {
$pixpath = $CFG->wwwroot.'/theme/'.$CFG->theme.'/pix';
}
$this->content->text .= "<div align=\"right\"><a href=\"$editpage\"><img src=\"$pixpath/t/edit.gif\" /></a></div>";
$this->content->text .= "<div align=\"right\"><a href=\"$editpage\"><img src=\"$CFG->pixpath/t/edit.gif\" /></a></div>";
}
$this->content->footer = '';
return $this->content;
}
function hide_header() {return true;}
function hide_header() {
return true;
}
}
?>