Merge branch 'wip-MDL-53274-fix' of https://github.com/marinaglancy/moodle
authorDan Poltawski <dan@moodle.com>
Wed, 30 Mar 2016 05:01:42 +0000 (13:01 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 30 Mar 2016 05:01:42 +0000 (13:01 +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;