MDL-24722 adding missing context info
authorPetr Skoda <skodak@moodle.org>
Mon, 18 Oct 2010 17:08:44 +0000 (17:08 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 18 Oct 2010 17:08:44 +0000 (17:08 +0000)
user/emailupdate.php

index ef03f9c..044a45a 100755 (executable)
@@ -31,6 +31,7 @@ $key = required_param('key', PARAM_ALPHANUM);
 $id  = required_param('id', PARAM_INT);
 
 $PAGE->set_url('/user/emailupdate.php', array('id'=>$id, 'key'=>$key));
+$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
 
 if (!$user = $DB->get_record('user', array('id' => $id))) {
     print_error('invaliduserid');