mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
[feature/attach-dl] Use class_exists/require instead of require_once.
PHPBB3-11042
This commit is contained in:
parent
93f630e9b1
commit
11129a5950
1 changed files with 5 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Reference in a new issue