aboutsummaryrefslogtreecommitdiff
path: root/actions/delete.php
diff options
context:
space:
mode:
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);