mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 09:23:31 +02:00
Merge branch 'MDL-62713-master' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
e460c95893
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user