Skip to content

Commit 7efdd7a

Browse files
change contextlevel
1 parent 22eebf2 commit 7efdd7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/search/moodleoverflowposts.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use core_search\document;
2424
defined('MOODLE_INTERNAL') || die();
2525
require_once(dirname(__FILE__) . '/../../locallib.php');
26+
2627
class moodleoverflowposts extends \core_search\base_mod {
2728

2829
/**
@@ -32,7 +33,7 @@ class moodleoverflowposts extends \core_search\base_mod {
3233
protected $moodleoverflows = array();
3334
protected $discussions = array();
3435

35-
protected static $levels = [CONTEXT_COURSE];
36+
protected static $levels = [CONTEXT_MODULE];
3637

3738
public function uses_file_indexing() {
3839
return false;

0 commit comments

Comments
 (0)