Skip to content

Commit

Permalink
Merge branch 'MDL-62713-master' of https://github.com/sammarshallou/m…
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Jul 2, 2018
2 parents 744a9de + 23f6a88 commit e460c95
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 * @return \core_search\document
*/ */
public function get_document($record, $options = array()) { public function get_document($record, $options = array()) {
global $CFG;
require_once($CFG->dirroot . '/course/lib.php');

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

0 comments on commit e460c95

Please sign in to comment.