Show a different string on the site page (instead of Course Summary)

This commit is contained in:
moodler
2004-06-30 13:16:48 +00:00
parent 6236ed990d
commit a88c8e9107
@@ -2,7 +2,11 @@
class CourseBlock_course_summary extends MoodleBlock {
function CourseBlock_course_summary ($course) {
$this->title = get_string('blockname','block_course_summary');
if (empty($course->category)) { // Site level
$this->title = get_string('frontpagedescription');
} else {
$this->title = get_string('blockname','block_course_summary');
}
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004052600;