From 43571d4d5381cc3e2a8ba3e05da6cb6982a1d960 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 4 Aug 2008 15:03:03 +0000 Subject: Fixes #199 git-svn-id: https://code.elgg.org/elgg/trunk@1682 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/entities/delete.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 actions/entities/delete.php (limited to 'actions') diff --git a/actions/entities/delete.php b/actions/entities/delete.php new file mode 100644 index 000000000..223e5557d --- /dev/null +++ b/actions/entities/delete.php @@ -0,0 +1,32 @@ +canEdit())) + { + if ($entity->delete()) + system_message(sprintf(elgg_echo('entity:delete:success'), $guid)); + else + register_error(sprintf(elgg_echo('entity:delete:fail'), $guid)); + } + else + register_error(sprintf(elgg_echo('entity:delete:fail'), $guid)); + + forward($_SERVER['HTTP_REFERER']); +?> \ No newline at end of file -- cgit v1.2.3