mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
FIxed pixpath usage
This commit is contained in:
parent
cc879d749b
commit
3e1fc10f9a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user