diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-01-21 01:30:09 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-01-21 01:30:09 +0000 |
commit | 0c5b4c242b0805c55ca3b1a887eb222844a66400 (patch) | |
tree | f3455e9dcac50226d33ab3048a691f90ee82d5c5 /views/default/object/default.php | |
parent | 3d9fb93c8c91e45b88dfeb816960049e0cb33231 (diff) | |
download | elgg-0c5b4c242b0805c55ca3b1a887eb222844a66400.tar.gz elgg-0c5b4c242b0805c55ca3b1a887eb222844a66400.tar.bz2 |
Fixes #750: All actions require __elgg_ts and __elgg_token.
git-svn-id: http://code.elgg.org/elgg/trunk@3821 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/object/default.php')
-rw-r--r-- | views/default/object/default.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/views/default/object/default.php b/views/default/object/default.php index 3ace73d7f..b6fe8a518 100644 --- a/views/default/object/default.php +++ b/views/default/object/default.php @@ -30,7 +30,11 @@ if ($vars['full']) { $controls = ""; if ($vars['entity']->canEdit()) { - $controls .= " (<a href=\"{$vars['url']}action/entities/delete?guid={$vars['entity']->guid}\">" . elgg_echo('delete') . "</a>)"; + $delete = elgg_view('output/confirm_link', array( + 'href' = "{$vars['url']}action/entities/delete?guid={$vars['entity']->guid}", + 'text' => elgg_echo('delete') + ); + $controls .= " ($delete)"; } $info = "<div><p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $title . "</a></b> $controls </p></div>"; @@ -56,4 +60,4 @@ if ($vars['full']) { $icon = "<span title=\"" . elgg_echo('entity:default:missingsupport:popup') . "\">$icon</span>"; echo elgg_view_listing($icon, $info); -}
\ No newline at end of file +} |