mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +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');
|
trigger_error('SORRY_AUTH_VIEW_ATTACH');
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
|
|
||||||
phpbb_increment_downloads($db, $attachment_ids);
|
phpbb_increment_downloads($db, $attachment_ids);
|
||||||
|
|
||||||
|
if (!class_exists('compress'))
|
||||||
|
{
|
||||||
|
require $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
|
||||||
|
}
|
||||||
|
|
||||||
if (!in_array($archive, compress::methods()))
|
if (!in_array($archive, compress::methods()))
|
||||||
{
|
{
|
||||||
$archive = '.tar';
|
$archive = '.tar';
|
||||||
|
Reference in New Issue
Block a user