aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 04:19:19 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 04:19:19 +0000
commit43532fd31404b685b8d337f7c653c52fd0b26860 (patch)
tree572a52380ba7eae24607e2d419ed0804850a644a /engine/lib/users.php
parent10b71502f8770c29a4d79266f1f242bd136e78ce (diff)
downloadelgg-43532fd31404b685b8d337f7c653c52fd0b26860.tar.gz
elgg-43532fd31404b685b8d337f7c653c52fd0b26860.tar.bz2
Fixes #2905: Admin action links on user hover menu asks for confirmation.
git-svn-id: http://code.elgg.org/elgg/trunk@8314 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 148a22a96..ec72b3c4d 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1328,6 +1328,8 @@ function elgg_user_hover_menu($hook, $type, $return, $params) {
$url = elgg_add_action_tokens_to_url($url);
$item = new ElggMenuItem($action, elgg_echo($action), $url);
$item->setSection('admin');
+ $item->setLinkClass('elgg-requires-confirmation');
+
$return[] = $item;
}