diff options
Diffstat (limited to 'mod/bookmarks/actions/delete.php')
-rw-r--r-- | mod/bookmarks/actions/delete.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mod/bookmarks/actions/delete.php b/mod/bookmarks/actions/delete.php deleted file mode 100644 index 23de80146..000000000 --- a/mod/bookmarks/actions/delete.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -/** - * Elgg bookmarks delete action - * - * @package ElggBookmarks - */ - -$guid = get_input('bookmark_guid',0); -if ($entity = get_entity($guid)) { - if ($entity->canEdit()) { - $container = get_entity($entity->container_guid); - if ($entity->delete()) { - system_message(elgg_echo("bookmarks:delete:success")); - forward("pg/bookmarks/$container->username/"); - } - } -} - -register_error(elgg_echo("bookmarks:delete:failed")); -forward(REFERER);
\ No newline at end of file |