mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14168] Unset prototype classes after use
PHPBB3-14168
This commit is contained in:
@@ -408,8 +408,10 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
||||
|
||||
/** @var \phpbb\attachment\upload $attachment_upload */
|
||||
$attachment_upload = $phpbb_container->get('attachment.upload');
|
||||
$file = $attachment_upload->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
|
||||
unset($attachment_upload);
|
||||
|
||||
return $attachment_upload->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user