~ubuntu-branches/ubuntu/trusty/moodle/trusty-proposed

« back to all changes in this revision

Viewing changes to user/messageselect.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130909152235-d9njbvgugzm380an
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    $url->param('deluser', $deluser);
59
59
}
60
60
$PAGE->set_url($url);
61
 
$PAGE->set_context(context_system::instance());
62
61
 
63
62
if (!$course = $DB->get_record('course', array('id'=>$id))) {
64
63
    print_error('invalidcourseid');
65
64
}
66
65
 
67
 
require_login();
 
66
require_login($course);
68
67
 
69
68
$coursecontext = context_course::instance($id);   // Course context
70
69
$systemcontext = context_system::instance();   // SYSTEM context