Added content "caching", same as all other blocks have.

This commit is contained in:
defacer 2004-04-19 09:36:07 +00:00
parent 7cd0cc52b2
commit 6757c3cdc6

View 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 = '';