Skip to content
Browse files

MDL-28187 message: fixed up $PAGE->set_url() in /message/index.php so…

… the nav highlighted properly
  • Loading branch information...
1 parent a2b30aa commit ff038e4bae6ee37bfe385a43f9495a3385373606 @andyjdavis andyjdavis committed Mar 8, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 message/edit.php
View
9 message/edit.php
@@ -30,12 +30,9 @@
$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);
-}
+$url->param('id', $userid);
+$url->param('course', $course);
+
$PAGE->set_url($url);
if (!$course = $DB->get_record('course', array('id' => $course))) {

0 comments on commit ff038e4

Please sign in to comment.
Something went wrong with that request. Please try again.