mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-59297 block_myoverview: fix fatal error (missing require_once)
This commit is contained in:
parent
6bb80a1917
commit
977258bacd
@ -63,6 +63,9 @@ class courses_view implements renderable, templatable {
|
||||
* @return array
|
||||
*/
|
||||
public function export_for_template(renderer_base $output) {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot.'/course/lib.php');
|
||||
|
||||
// Build courses view data structure.
|
||||
$coursesview = [
|
||||
'hascourses' => !empty($this->courses)
|
||||
|
Loading…
x
Reference in New Issue
Block a user