From 6757c3cdc63c3a148c0fc82eae9003bea933ca63 Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 19 Apr 2004 09:36:07 +0000 Subject: [PATCH] Added content "caching", same as all other blocks have. --- blocks/course_summary/block_course_summary.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blocks/course_summary/block_course_summary.php b/blocks/course_summary/block_course_summary.php index fb9a23c35fe..69e00e40466 100644 --- a/blocks/course_summary/block_course_summary.php +++ b/blocks/course_summary/block_course_summary.php @@ -11,6 +11,10 @@ class CourseBlock_course_summary extends MoodleBlock { function get_content() { global $USER, $CFG; + if($this->content !== NULL) { + return $this->content; + } + $this->content = New object; $this->content->text = ''; $this->content->footer = '';