1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

Merge branch '3.2.x' into 3.3.x

This commit is contained in:
Marc Alexander
2020-03-01 17:11:09 +01:00
2 changed files with 8 additions and 0 deletions

View File

@@ -689,6 +689,10 @@ function compose_pm($id, $mode, $action, $user_folders = array())
);
$db->sql_query($sql);
/** @var \phpbb\attachment\manager $attachment_manager */
$attachment_manager = $phpbb_container->get('attachment.manager');
$attachment_manager->delete('attach', array_column($message_parser->attachment_data, 'attach_id'));
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx", "i=pm&mode=$mode");
meta_refresh(3, $redirect_url);