Added content "caching", same as all other blocks have.
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user