]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug #1280: the "showrecent" course setting has to go.
authordefacer <defacer>
Thu, 29 Apr 2004 10:29:23 +0000 (10:29 +0000)
committerdefacer <defacer>
Thu, 29 Apr 2004 10:29:23 +0000 (10:29 +0000)
Don't check for this setting anymore.

blocks/recent_activity/block_recent_activity.php

index 43f96cacf06dec987dfe9e026be67503eb3d2d30..b7677556000a1c37f83b785eab2744aa04eda2de 100644 (file)
@@ -5,7 +5,7 @@ class CourseBlock_recent_activity extends MoodleBlock {
         $this->title = get_string('recentactivity');
         $this->content_type = BLOCK_TYPE_TEXT;
         $this->course = $course;
-        $this->version = 2004041000;
+        $this->version = 2004042900;
     }
 
     function get_content() {
@@ -18,13 +18,11 @@ class CourseBlock_recent_activity extends MoodleBlock {
         $this->content->text = '';
         $this->content->footer = '';
 
-        if ($this->course->showrecent) {
-            // Slightly hacky way to do it but...
-            ob_start();
-            print_recent_activity($this->course);
-            $this->content->text = ob_get_contents();
-            ob_end_clean();
-        }
+        // Slightly hacky way to do it but...
+        ob_start();
+        print_recent_activity($this->course);
+        $this->content->text = ob_get_contents();
+        ob_end_clean();
 
         return $this->content;
     }