]> git.mjollnir.org Git - moodle.git/commitdiff
Show a different string on the site page (instead of Course Summary)
authormoodler <moodler>
Wed, 30 Jun 2004 13:16:48 +0000 (13:16 +0000)
committermoodler <moodler>
Wed, 30 Jun 2004 13:16:48 +0000 (13:16 +0000)
blocks/course_summary/block_course_summary.php

index c2c8642b5416fa8e3229a4f49d49a3fd2677ef43..bca89f1851788897bc785271b71dcf86035e4c34 100644 (file)
@@ -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;