From: defacer Date: Thu, 29 Apr 2004 10:29:23 +0000 (+0000) Subject: Fix for bug #1280: the "showrecent" course setting has to go. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7a8bcd59e841ebdeb59c611c487ec7732831543f;p=moodle.git Fix for bug #1280: the "showrecent" course setting has to go. Don't check for this setting anymore. --- diff --git a/blocks/recent_activity/block_recent_activity.php b/blocks/recent_activity/block_recent_activity.php index 43f96cacf0..b767755600 100644 --- a/blocks/recent_activity/block_recent_activity.php +++ b/blocks/recent_activity/block_recent_activity.php @@ -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; }