mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Added content "caching", same as all other blocks have.
This commit is contained in:
parent
7cd0cc52b2
commit
6757c3cdc6
@ -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 = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user