From 0a4f89e5b65106a509d3ec64e55f6bde4acd80eb Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 30 Mar 2016 12:57:02 +0800 Subject: [PATCH] MDL-53274 message: set page context --- message/ajax.php | 1 + 1 file changed, 1 insertion(+) diff --git a/message/ajax.php b/message/ajax.php index b4362d64cc3..7a4bb6573bf 100644 --- a/message/ajax.php +++ b/message/ajax.php @@ -39,6 +39,7 @@ if (empty($CFG->messaging)) { throw new moodle_exception('disabled', 'core_message'); } +$PAGE->set_context(null); require_sesskey(); $action = optional_param('action', null, PARAM_ALPHA); $response = null; -- 2.43.0