Skip to content

Commit

Permalink
Merge branch 'MDL-62713-m35' of https://github.com/sammarshallou/moodle
Browse files Browse the repository at this point in the history
… into MOODLE_35_STABLE
  • Loading branch information
David Monllao committed Jul 2, 2018
2 parents 3879b52 + c843630 commit d42328e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions course/classes/search/section.php
Expand Up @@ -85,6 +85,9 @@ public function get_document_recordset($modifiedfrom = 0, \context $context = nu
* @return \core_search\document
*/
public function get_document($record, $options = array()) {
global $CFG;
require_once($CFG->dirroot . '/course/lib.php');

// Get the context, modinfo, and section.
try {
$context = \context_course::instance($record->course);
Expand Down

0 comments on commit d42328e

Please sign in to comment.