mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
- blabla, additional bugfixing permissions...
git-svn-id: file:///svn/phpbb/trunk@5580 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user