Merge branch 'MDL-62713-m35' of https://github.com/sammarshallou/moodle into MOODLE_35_STABLE

This commit is contained in:
David Monllao
2018-07-02 10:42:18 +02:00
+3
View File
@@ -85,6 +85,9 @@ class section extends \core_search\base {
* @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);