Commit 4b921f3a authored by Nigel McNie's avatar Nigel McNie
Browse files

Announce the name of the friend you have just added, not your name. Fixes #2063.

parent 45d832b8
......@@ -1037,7 +1037,7 @@ function addfriend_submit(Pieform $form, $values) {
$n->message = get_string_from_language($lang, 'addedtofriendslistmessage', 'group', $displayname, $displayname);
activity_occurred('maharamessage', $n);
$SESSION->add_ok_msg(get_string('friendformaddsuccess', 'group', $displayname));
$SESSION->add_ok_msg(get_string('friendformaddsuccess', 'group', display_name($user)));
redirect('/user/view.php?id=' . $values['id']);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment