mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-08 01:44:07 +02:00
Merge branch '3.3.x'
This commit is contained in:
commit
a7bc774a53
@ -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);
|
||||
|
@ -759,6 +759,10 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && (
|
||||
);
|
||||
$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'));
|
||||
|
||||
$meta_info = ($mode == 'post') ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id) : append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");
|
||||
|
||||
meta_refresh(3, $meta_info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user