From a88c8e91079e9b2a7733952537952b2980c0f1d1 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 30 Jun 2004 13:16:48 +0000 Subject: [PATCH] Show a different string on the site page (instead of Course Summary) --- blocks/course_summary/block_course_summary.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blocks/course_summary/block_course_summary.php b/blocks/course_summary/block_course_summary.php index c2c8642b54..bca89f1851 100644 --- a/blocks/course_summary/block_course_summary.php +++ b/blocks/course_summary/block_course_summary.php @@ -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; -- 2.39.5