mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-59297_myoverview_error' of git://github.com/davosmith/moodle
This commit is contained in:
commit
41c17610c0
@ -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