]> git.mjollnir.org Git - moodle.git/commitdiff
Added content "caching", same as all other blocks have.
authordefacer <defacer>
Mon, 19 Apr 2004 09:36:07 +0000 (09:36 +0000)
committerdefacer <defacer>
Mon, 19 Apr 2004 09:36:07 +0000 (09:36 +0000)
blocks/course_summary/block_course_summary.php

index fb9a23c35fecf35cabb9b8afdb869ccf4a7b8a92..69e00e40466b1786ee1b01c906114e48044c29df 100644 (file)
@@ -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 = '';