Skip to content

Commit e460c95

Browse files
author
David Monllao
committed
Merge branch 'MDL-62713-master' of https://github.com/sammarshallou/moodle
2 parents 744a9de + 23f6a88 commit e460c95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

course/classes/search/section.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public function get_document_recordset($modifiedfrom = 0, \context $context = nu
8585
* @return \core_search\document
8686
*/
8787
public function get_document($record, $options = array()) {
88+
global $CFG;
89+
require_once($CFG->dirroot . '/course/lib.php');
90+
8891
// Get the context, modinfo, and section.
8992
try {
9093
$context = \context_course::instance($record->course);

0 commit comments

Comments
 (0)