aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-02-24 17:33:42 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-02-24 17:33:42 +0000
commit724b37ae9706c24b23833da67565dc20d7d78045 (patch)
treeeea320ac39a6498362441f819b9ea53381524de5 /phpBB/posting.php
parent37e0e0a4da489125f825ad9f2ba9ea1763e82452 (diff)
downloadforums-724b37ae9706c24b23833da67565dc20d7d78045.tar
forums-724b37ae9706c24b23833da67565dc20d7d78045.tar.gz
forums-724b37ae9706c24b23833da67565dc20d7d78045.tar.bz2
forums-724b37ae9706c24b23833da67565dc20d7d78045.tar.xz
forums-724b37ae9706c24b23833da67565dc20d7d78045.zip
- blabla, additional bugfixing permissions...
git-svn-id: file:///svn/phpbb/trunk@5580 89ea8834-ac86-4346-8a33-228a782c2dd0
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))