Skip to content

Commit

Permalink
MDL-54698 message: add preferences pages to breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwyllie authored and mdjnelson committed Oct 7, 2016
1 parent 8c12552 commit 14501b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4535,8 +4535,10 @@ protected function generate_user_settings($courseid, $userid, $gstitle='usercurr
// Messaging.
if (($currentuser && has_capability('moodle/user:editownmessageprofile', $systemcontext)) || (!isguestuser($user) &&
has_capability('moodle/user:editmessageprofile', $usercontext) && !is_primary_admin($user->id))) {
$url = new moodle_url('/message/edit.php', array('id'=>$user->id));
$useraccount->add(get_string('messaging', 'message'), $url, self::TYPE_SETTING);
$messagingurl = new moodle_url('/message/edit.php', array('id' => $user->id));
$notificationsurl = new moodle_url('/message/notificationpreferences.php', array('id' => $user->id));
$useraccount->add(get_string('messagepreferences', 'message'), $messagingurl, self::TYPE_SETTING);
$useraccount->add(get_string('notificationpreferences', 'message'), $notificationsurl, self::TYPE_SETTING);
}

// Blogs.
Expand Down
2 changes: 1 addition & 1 deletion message/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}

/// Display page header
$strmessaging = get_string('messaging', 'message');
$strmessaging = get_string('messagepreferences', 'message');
$PAGE->set_title($strmessaging);
$PAGE->set_heading(fullname($user));

Expand Down

0 comments on commit 14501b1

Please sign in to comment.