mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/14168] Unset prototype classes after use
PHPBB3-14168
This commit is contained in:
@@ -1125,6 +1125,7 @@ function delete_attachments($mode, $ids, $resync = true)
|
|||||||
$attachment_delete = $phpbb_container->get('attachment.delete');
|
$attachment_delete = $phpbb_container->get('attachment.delete');
|
||||||
|
|
||||||
$num_deleted = $attachment_delete->delete($mode, $ids, $resync);
|
$num_deleted = $attachment_delete->delete($mode, $ids, $resync);
|
||||||
|
unset($attachment_delete);
|
||||||
|
|
||||||
return $num_deleted;
|
return $num_deleted;
|
||||||
}
|
}
|
||||||
|
@@ -408,8 +408,10 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
|||||||
|
|
||||||
/** @var \phpbb\attachment\upload $attachment_upload */
|
/** @var \phpbb\attachment\upload $attachment_upload */
|
||||||
$attachment_upload = $phpbb_container->get('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