Merge branch 'master-MDL-66805-search' of https://github.com/kristian-94/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-10-11 00:55:36 +02:00
commit 212764c4af

View File

@ -48,6 +48,9 @@ if (!empty($CFG->forcelogin)) {
require_login();
}
// Unlock the session during a search.
\core\session\manager::write_close();
require_capability('moodle/search:query', $context);
$searchrenderer = $PAGE->get_renderer('core_search');