mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Added content "caching", same as all other blocks have.
This commit is contained in:
parent
7cd0cc52b2
commit
6757c3cdc6
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ class CourseBlock_course_summary extends MoodleBlock {
|
||||||
function get_content() {
|
function get_content() {
|
||||||
global $USER, $CFG;
|
global $USER, $CFG;
|
||||||
|
|
||||||
|
if($this->content !== NULL) {
|
||||||
|
return $this->content;
|
||||||
|
}
|
||||||
|
|
||||||
$this->content = New object;
|
$this->content = New object;
|
||||||
$this->content->text = '';
|
$this->content->text = '';
|
||||||
$this->content->footer = '';
|
$this->content->footer = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue