MDL-53274 message: set page context
authorMarina Glancy <marina@moodle.com>
Wed, 30 Mar 2016 04:57:02 +0000 (12:57 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 30 Mar 2016 04:57:32 +0000 (12:57 +0800)
message/ajax.php

index b4362d6..7a4bb65 100644 (file)
@@ -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;