Skip to content

Commit

Permalink
MDL-28187 message: fixed up $PAGE->set_url() in /message/index.php so…
Browse files Browse the repository at this point in the history
… the nav highlighted properly
  • Loading branch information
andyjdavis committed Mar 17, 2012
1 parent 3c4111e commit 9d014d7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions message/edit.php
Expand Up @@ -31,12 +31,9 @@
$disableall = optional_param('disableall', 0, PARAM_BOOL); //disable all of this user's notifications $disableall = optional_param('disableall', 0, PARAM_BOOL); //disable all of this user's notifications


$url = new moodle_url('/message/edit.php'); $url = new moodle_url('/message/edit.php');
if ($userid !== $USER->id) { $url->param('id', $userid);
$url->param('id', $userid); $url->param('course', $course);
}
if ($course != SITEID) {
$url->param('course', $course);
}
$PAGE->set_url($url); $PAGE->set_url($url);


if (!$course = $DB->get_record('course', array('id' => $course))) { if (!$course = $DB->get_record('course', array('id' => $course))) {
Expand Down

0 comments on commit 9d014d7

Please sign in to comment.