mirror of
https://github.com/moodle/moodle.git
synced 2025-07-10 17:06:40 +02:00
Merge branch 'MDL-28187_messaging_nav' of git://github.com/andyjdavis/moodle
This commit is contained in:
@ -30,12 +30,9 @@ $course = optional_param('course', SITEID, PARAM_INT); // course id (defaults
|
||||
$disableall = optional_param('disableall', 0, PARAM_BOOL); //disable all of this user's notifications
|
||||
|
||||
$url = new moodle_url('/message/edit.php');
|
||||
if ($userid !== $USER->id) {
|
||||
$url->param('id', $userid);
|
||||
}
|
||||
if ($course != SITEID) {
|
||||
$url->param('course', $course);
|
||||
}
|
||||
|
||||
$PAGE->set_url($url);
|
||||
|
||||
if (!$course = $DB->get_record('course', array('id' => $course))) {
|
||||
|
Reference in New Issue
Block a user