aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-04 22:44:31 -0400
committercash <cash.costello@gmail.com>2011-10-04 22:44:31 -0400
commit25219468c2c0e76819a811fabf5d450ae425b79a (patch)
tree80e42a48203768632c8a2645ba9f26ad9ff1aca9 /engine/lib
parent183bdea42db704a6c1b25b8f03059302b0a3fb02 (diff)
downloadelgg-25219468c2c0e76819a811fabf5d450ae425b79a.tar.gz
elgg-25219468c2c0e76819a811fabf5d450ae425b79a.tar.bz2
Fixes #3700 using different names for add friend and remove friend user hover menu items
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/users.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 36e137876..2d6b7cabd 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1222,12 +1222,14 @@ function elgg_user_hover_menu($hook, $type, $return, $params) {
if ($user->isFriend()) {
$url = "action/friends/remove?friend={$user->guid}";
$text = elgg_echo('friend:remove');
+ $name = 'remove_friend';
} else {
$url = "action/friends/add?friend={$user->guid}";
$text = elgg_echo('friend:add');
+ $name = 'add_friend';
}
$url = elgg_add_action_tokens_to_url($url);
- $item = new ElggMenuItem('addfriend', $text, $url);
+ $item = new ElggMenuItem($name, $text, $url);
$item->setSection('action');
$return[] = $item;
} else {