diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-06-01 13:57:17 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-09 08:27:40 +0200 |
commit | a96e7a8ec6efa483b47dca3395ee2de608cfc675 (patch) | |
tree | c4bdf6d31a8190bcd068521714db559185322afc /phpBB/includes/functions_posting.php | |
parent | 186b4495b625a40459618f01784b814a29f98ae0 (diff) | |
download | forums-a96e7a8ec6efa483b47dca3395ee2de608cfc675.tar forums-a96e7a8ec6efa483b47dca3395ee2de608cfc675.tar.gz forums-a96e7a8ec6efa483b47dca3395ee2de608cfc675.tar.bz2 forums-a96e7a8ec6efa483b47dca3395ee2de608cfc675.tar.xz forums-a96e7a8ec6efa483b47dca3395ee2de608cfc675.zip |
[ticket/13904] Get rid of useless parameters and variables
PHPBB3-13904
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 75ac20a337..f625555d49 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -410,7 +410,6 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage 'error' => array() ); - include_once($phpbb_root_path . 'includes/functions_upload.' . $phpEx); $upload = $phpbb_container->get('files.upload'); if ($config['check_attachment_content'] && isset($config['mime_triggers'])) @@ -434,7 +433,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage $upload->set_allowed_extensions(array_keys($extensions['_allowed_'])); /** @var \phpbb\files\filespec $file */ - $file = ($local) ? $upload->local_upload($local_storage, $local_filedata, $mimetype_guesser) : $upload->form_upload($form_name, $mimetype_guesser, $plupload); + $file = ($local) ? $upload->local_upload($local_storage, $local_filedata) : $upload->form_upload($form_name, $plupload); if ($file->init_error()) { |