From 27781e0d8e226b89988e2cf7b8351d1d50cef4b7 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 17 May 2009 21:46:22 +0000 Subject: added events to end of successful actions so plugins can do stuff --- actions/delete.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'actions/delete.php') 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); -- cgit v1.2.3