diff options
| author | Fyorl <gaelreth@gmail.com> | 2012-08-07 16:10:01 +0100 |
|---|---|---|
| committer | Fyorl <gaelreth@gmail.com> | 2012-08-07 16:10:01 +0100 |
| commit | 32f73383612e092166e2d0be89ed98d9fcf21d68 (patch) | |
| tree | e2018e85bfedb04dfc366f6190e71601f3f5b216 /phpBB/includes | |
| parent | 3d68a6953e4a63708379e6ed14f46d97f383bfa4 (diff) | |
| parent | 8d914e05ae8cb98fcf70f48651728f41ba7da7fa (diff) | |
| download | forums-32f73383612e092166e2d0be89ed98d9fcf21d68.tar forums-32f73383612e092166e2d0be89ed98d9fcf21d68.tar.gz forums-32f73383612e092166e2d0be89ed98d9fcf21d68.tar.bz2 forums-32f73383612e092166e2d0be89ed98d9fcf21d68.tar.xz forums-32f73383612e092166e2d0be89ed98d9fcf21d68.zip | |
[feature/attach-dl] Merge changes from bantu/feature/attach-dl
PHPBB3-11042
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions_download.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 7d21147ab5..b01712357d 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -613,26 +613,3 @@ function phpbb_increment_downloads($db, $ids) WHERE ' . $db->sql_in_set('attach_id', $ids); $db->sql_query($sql); } - -/** -* Checks every attachment to see if it has an allowed extension -* -* @param array $extensions As generated by phpbb_cache_service::obtain_attach_extensions -* @param array &$attachments An array of attachments to check -* -* @return bool Whether any of the attachments had allowed extensions -*/ -function phpbb_check_attach_extensions($extensions, &$attachments) -{ - $new_ary = array(); - foreach ($attachments as $attach) - { - if (isset($extensions['_allowed_'][$attach['extension']])) - { - $new_ary[] = $attach; - } - } - - $attachments = $new_ary; - return !empty($attachments); -} |
