diff options
Diffstat (limited to 'pages/viewimage.php')
-rw-r--r-- | pages/viewimage.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/viewimage.php b/pages/viewimage.php index 5caccdf06..5f23fc685 100644 --- a/pages/viewimage.php +++ b/pages/viewimage.php @@ -39,8 +39,10 @@ add_submenu_item( elgg_echo('image:edit'),
$CONFIG->wwwroot . 'pg/photos/edit/' . $photo_guid,
'photos');
+ $ts = time();
+ $token = generate_action_token($ts);
add_submenu_item( elgg_echo('image:delete'),
- $CONFIG->wwwroot . 'pg/photos/delete/' . $photo_guid,
+ $CONFIG->wwwroot . 'action/tidypics/delete?guid=' . $photo_guid . '&__elgg_token=' . $token . '&__elgg_ts=' . $ts,
'photos',
true);
}
|