aboutsummaryrefslogtreecommitdiff
path: root/actions/friendrequest/decline.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/friendrequest/decline.php')
-rw-r--r--actions/friendrequest/decline.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/actions/friendrequest/decline.php b/actions/friendrequest/decline.php
deleted file mode 100644
index ca3f1c9e4..000000000
--- a/actions/friendrequest/decline.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-$user = elgg_get_logged_in_user_entity();
-$friend = get_entity(sanitize_int(get_input("guid")));
-
-if(remove_entity_relationship($friend->guid, 'friendrequest', $user->guid)) {
- system_message(elgg_echo("friendrequest:decline:success", array($friend->name)));
-} else {
- system_message(elgg_echo("friendrequest:decline:fail"));
-}
-
-forward(REFERER);