mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[feature/attach-dl] Use class_exists/require instead of require_once.
PHPBB3-11042
This commit is contained in:
@@ -382,9 +382,13 @@ else
|
||||
trigger_error('SORRY_AUTH_VIEW_ATTACH');
|
||||
}
|
||||
|
||||
require_once $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
|
||||
phpbb_increment_downloads($db, $attachment_ids);
|
||||
|
||||
if (!class_exists('compress'))
|
||||
{
|
||||
require $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
|
||||
}
|
||||
|
||||
if (!in_array($archive, compress::methods()))
|
||||
{
|
||||
$archive = '.tar';
|
||||
|
Reference in New Issue
Block a user