From 724b37ae9706c24b23833da67565dc20d7d78045 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 24 Feb 2006 17:33:42 +0000 Subject: - blabla, additional bugfixing permissions... git-svn-id: file:///svn/phpbb/trunk@5580 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index b9a38e61f8..f1e47570bb 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1177,13 +1177,15 @@ page_footer(); */ function delete_post($mode, $post_id, $topic_id, $forum_id, &$data) { - global $db, $user, $config, $auth, $phpEx, $SID; + global $db, $user, $config, $auth, $phpEx, $SID, $phpbb_root_path; // Specify our post mode $post_mode = ($data['topic_first_post_id'] == $data['topic_last_post_id']) ? 'delete_topic' : (($data['topic_first_post_id'] == $post_id) ? 'delete_first_post' : (($data['topic_last_post_id'] == $post_id) ? 'delete_last_post' : 'delete')); $sql_data = array(); $next_post_id = 0; + include_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx); + $db->sql_transaction(); if (!delete_posts('post_id', array($post_id), false)) -- cgit v1.2.1