aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/image/untag.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/photos/image/untag.php')
-rw-r--r--actions/photos/image/untag.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/actions/photos/image/untag.php b/actions/photos/image/untag.php
deleted file mode 100644
index 11c433a61..000000000
--- a/actions/photos/image/untag.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * Remove photo tag action
- */
-
-$annotation = elgg_get_annotation_from_id(get_input('annotation_id'));
-
-if (!$annotation instanceof ElggAnnotation || $annotation->name != 'phototag') {
- register_error(elgg_echo("tidypics:phototagging:delete:error"));
- forward(REFERER);
-}
-
-if (!$annotation->canEdit()) {
- register_error(elgg_echo("tidypics:phototagging:delete:error"));
- forward(REFERER);
-}
-
-if ($annotation->delete()) {
- system_message(elgg_echo("tidypics:phototagging:delete:success"));
-} else {
- system_message(elgg_echo("tidypics:phototagging:delete:error"));
-}
-
-forward(REFERER);