Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

… the nav highlighted properly
  • Loading branch information...
commit 9d014d75f456ae58ebdcede2794d0c0b54859563 1 parent 3c4111e
Andrew Davis authored March 08, 2012

Showing 1 changed file with 3 additions and 6 deletions. Show diff stats Hide diff stats

  1. 9  message/edit.php
9  message/edit.php
@@ -31,12 +31,9 @@
31 31
 $disableall = optional_param('disableall', 0, PARAM_BOOL); //disable all of this user's notifications
32 32
 
33 33
 $url = new moodle_url('/message/edit.php');
34  
-if ($userid !== $USER->id) {
35  
-    $url->param('id', $userid);
36  
-}
37  
-if ($course != SITEID) {
38  
-    $url->param('course', $course);
39  
-}
  34
+$url->param('id', $userid);
  35
+$url->param('course', $course);
  36
+
40 37
 $PAGE->set_url($url);
41 38
 
42 39
 if (!$course = $DB->get_record('course', array('id' => $course))) {

0 notes on commit 9d014d7

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