aboutsummaryrefslogtreecommitdiff
path: root/actions/delete.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-17 21:46:22 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-17 21:46:22 +0000
commit27781e0d8e226b89988e2cf7b8351d1d50cef4b7 (patch)
tree5725dc07612eb27de394c623ef1c74a381b16fa4 /actions/delete.php
parent3b796bc5b923899cfec2f81ff9f811a02260a071 (diff)
downloadelgg-27781e0d8e226b89988e2cf7b8351d1d50cef4b7.tar.gz
elgg-27781e0d8e226b89988e2cf7b8351d1d50cef4b7.tar.bz2
added events to end of successful actions so plugins can do stuff
Diffstat (limited to 'actions/delete.php')
-rw-r--r--actions/delete.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/delete.php b/actions/delete.php
index 5c275003e..ecc5f7ffe 100644
--- a/actions/delete.php
+++ b/actions/delete.php
@@ -16,7 +16,8 @@
$subtype = $photoObject->getSubtype();
$container = get_entity($photoObject->container_guid);
- if ($subtype!='image' && $subtype!='album') forward(get_input('forward_url', $_SERVER['HTTP_REFERER'])); //back off if not an album or image
+ if ($subtype!='image' && $subtype!='album')
+ forward(get_input('forward_url', $_SERVER['HTTP_REFERER'])); //back off if not an album or image
if ($subtype == 'image') { //deleting an image
$forward_url = $container->getURL(); //forward back to album after deleting pictures
@@ -93,7 +94,7 @@
} //end of canEdit() comparison
} else { // unable to get Elgg entity
- register_error(elgg_echo("file:deletefailed"));
+ register_error(elgg_echo("file:deletefailed"));
} //end of get_entitty()
forward($forward_url);