From: defacer Date: Mon, 19 Apr 2004 09:36:07 +0000 (+0000) Subject: Added content "caching", same as all other blocks have. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6757c3cdc63c3a148c0fc82eae9003bea933ca63;p=moodle.git Added content "caching", same as all other blocks have. --- diff --git a/blocks/course_summary/block_course_summary.php b/blocks/course_summary/block_course_summary.php index fb9a23c35f..69e00e4046 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 = '';