diff options
author | Cash Costello <cash.costello@gmail.com> | 2010-01-06 01:33:57 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2010-01-06 01:33:57 +0000 |
commit | 6d59bac1b049d881c488ee458808c32a91fbfe8a (patch) | |
tree | 140427e5ab8a4fc842b405288798dcbac7dbc802 /actions | |
parent | 066a30d42aa814637facc30f5cc24e8a50d908d8 (diff) | |
download | elgg-6d59bac1b049d881c488ee458808c32a91fbfe8a.tar.gz elgg-6d59bac1b049d881c488ee458808c32a91fbfe8a.tar.bz2 |
no longer depending on file plugin for delete messages
Diffstat (limited to 'actions')
-rw-r--r-- | actions/delete.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/actions/delete.php b/actions/delete.php index 5506c2303..cab996ec5 100644 --- a/actions/delete.php +++ b/actions/delete.php @@ -14,12 +14,12 @@ $entity = get_entity($guid); if (!$entity) { // unable to get Elgg entity - register_error(elgg_echo("file:deletefailed")); + register_error(elgg_echo("tidypics:deletefailed")); forward($forward_url); } if (!$entity->canEdit()) { // user doesn't have permissions - register_error(elgg_echo("file:deletefailed")); + register_error(elgg_echo("tidypics:deletefailed")); forward($forward_url); } @@ -27,7 +27,7 @@ $container = get_entity($entity->container_guid); if ($subtype != 'image' && $subtype != 'album') { // how did we even get here? - register_error(elgg_echo("file:deletefailed")); + register_error(elgg_echo("tidypics:deletefailed")); forward($forward_url); } @@ -83,9 +83,9 @@ $image_repo_size -= $delfile->size(); if (!$delfile->delete()) { - if ($subtype=='image') register_error(elgg_echo("file:deletefailed")); //unable to delete object + if ($subtype=='image') register_error(elgg_echo("tidypics:deletefailed")); //unable to delete object } else { - if ($subtype=='image') system_message(elgg_echo("file:deleted")); //successfully deleted object + if ($subtype=='image') system_message(elgg_echo("tidypics:deleted")); //successfully deleted object } } //end delete actual image file } //end looping through each image to delete it @@ -108,9 +108,9 @@ //delete object from database if (!$entity->delete()) { - register_error(elgg_echo("file:deletefailed")); //unable to delete object + register_error(elgg_echo("tidypics:deletefailed")); //unable to delete object } else { - system_message(elgg_echo("file:deleted")); //successfully deleted object + system_message(elgg_echo("tidypics:deleted")); //successfully deleted object } } //end of delete album |