Merge branch 'MDL-59297_myoverview_error' of git://github.com/davosmith/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2017-06-26 13:04:42 +02:00
commit 41c17610c0

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)