diff options
| author | Máté Bartus <mate.bartus@gmail.com> | 2016-04-06 21:01:41 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-06 21:26:55 +0200 |
| commit | 7a831c3e2844c94feb5fea2a4710816c5024623a (patch) | |
| tree | 23d6ec523133fb34bbd375411112af10f2fba8db /phpBB/includes/functions_posting.php | |
| parent | 61bdccbfd804c6638e977d250f6e9a0f30aa5f98 (diff) | |
| download | forums-7a831c3e2844c94feb5fea2a4710816c5024623a.tar forums-7a831c3e2844c94feb5fea2a4710816c5024623a.tar.gz forums-7a831c3e2844c94feb5fea2a4710816c5024623a.tar.bz2 forums-7a831c3e2844c94feb5fea2a4710816c5024623a.tar.xz forums-7a831c3e2844c94feb5fea2a4710816c5024623a.zip | |
[ticket/14548] Move deprecated globals and functions
PHPBB3-14584
Diffstat (limited to 'phpBB/includes/functions_posting.php')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 3640f543d9..e2ab717217 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -397,34 +397,6 @@ function posting_gen_topic_types($forum_id, $cur_topic_type = POST_NORMAL) // // Attachment related functions // - -/** -* Upload Attachment - filedata is generated here -* Uses upload class -* -* @deprecated 3.2.0-a1 (To be removed: 3.4.0) -* -* @param string $form_name The form name of the file upload input -* @param int $forum_id The id of the forum -* @param bool $local Whether the file is local or not -* @param string $local_storage The path to the local file -* @param bool $is_message Whether it is a PM or not -* @param array $local_filedata A filespec object created for the local file -* -* @return array File data array -*/ -function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false) -{ - global $phpbb_container; - - /** @var \phpbb\attachment\manager $attachment_manager */ - $attachment_manager = $phpbb_container->get('attachment.manager'); - $file = $attachment_manager->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata); - unset($attachment_manager); - - return $file; -} - /** * Calculate the needed size for Thumbnail */ |
