aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php4
1 files changed, 3 insertions, 1 deletions
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))