MDL-59297 block_myoverview: fix fatal error (missing require_once)

This commit is contained in:
Davo Smith 2017-06-20 11:13:03 +01:00
parent 6bb80a1917
commit 977258bacd

View File

@ -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)