Permalink
Browse files

MDL-13805 core_message: fixed some problems caused by a hasty backport

  • Loading branch information...
1 parent eae7b4d commit db30e0b00ab1df65f47910b78edb1351eafc96ad @andyjdavis andyjdavis committed Jan 30, 2013
Showing with 0 additions and 7 deletions.
  1. +0 −1 message/edit.php
  2. +0 −6 message/index.php
View
@@ -45,7 +45,6 @@
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$personalcontext = get_context_instance(CONTEXT_USER, $user->id);
-$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
$PAGE->set_context($personalcontext);
$PAGE->set_pagelayout('course');
View
@@ -83,18 +83,12 @@
$PAGE->set_url($url);
-$PAGE->set_context(get_context_instance(CONTEXT_USER, $USER->id));
-$PAGE->navigation->extend_for_user($USER);
-$PAGE->set_pagelayout('course');
-
$navigationurl = new moodle_url('/message/index.php', array('user1' => $user1id));
navigation_node::override_active_url($navigationurl);
// Disable message notification popups while the user is viewing their messages
$PAGE->set_popup_notification_allowed(false);
-//$context = get_context_instance(CONTEXT_SYSTEM);
-
$user1 = null;
$currentuser = true;
$showactionlinks = true;

0 comments on commit db30e0b

Please sign in to comment.