From e9f261e51adcaa80429fe14b04ee277ab3124ce9 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 6 Aug 2009 14:17:37 +0000 Subject: removed all main plugins from core - they now live in the plugins svn git-svn-id: https://code.elgg.org/elgg/trunk@3422 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/forums/deletepost.php | 44 -------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 mod/groups/actions/forums/deletepost.php (limited to 'mod/groups/actions/forums/deletepost.php') diff --git a/mod/groups/actions/forums/deletepost.php b/mod/groups/actions/forums/deletepost.php deleted file mode 100644 index 9c89610bb..000000000 --- a/mod/groups/actions/forums/deletepost.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @copyright Curverider Ltd 2008-2009 - * @link http://elgg.org/ - */ - - // Ensure we're logged in - if (!isloggedin()) forward(); - - - // Make sure we can get the comment in question - $post_id = (int) get_input('post'); - $group_guid = (int) get_input('group'); - $topic_guid = (int) get_input('topic'); - - if ($post = get_annotation($post_id)) { - - //check that the user can edit as well as admin - if ($post->canEdit() || ($post->owner_guid == $_SESSION['user']->guid)) { - - //delete - $post->delete(); - //display confirmation message - system_message(elgg_echo("grouppost:deleted")); - - } - - } else { - $url = ""; - system_message(elgg_echo("grouppost:notdeleted")); - } - - // Forward to the group forum page - global $CONFIG; - $url = $CONFIG->wwwroot . "mod/groups/topicposts.php?topic={$topic_guid}&group_guid={$group_guid}"; - forward($url); - -?> \ No newline at end of file -- cgit v1.2.3