From: moodler Date: Wed, 30 Jun 2004 13:16:48 +0000 (+0000) Subject: Show a different string on the site page (instead of Course Summary) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a88c8e91079e9b2a7733952537952b2980c0f1d1;p=moodle.git Show a different string on the site page (instead of Course Summary) --- 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;