aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-14 13:31:33 +0100
committerFyorl <gaelreth@gmail.com>2012-08-14 13:31:33 +0100
commitc6449b48255bcb60de271114c008df724f78d82c (patch)
treeea4c529c2f28727dc1ca789a679ed5d01994a563 /phpBB
parent2bcff6982afc1dac1b7a590c4de04d69e4cf187c (diff)
downloadforums-c6449b48255bcb60de271114c008df724f78d82c.tar
forums-c6449b48255bcb60de271114c008df724f78d82c.tar.gz
forums-c6449b48255bcb60de271114c008df724f78d82c.tar.bz2
forums-c6449b48255bcb60de271114c008df724f78d82c.tar.xz
forums-c6449b48255bcb60de271114c008df724f78d82c.zip
[feature/attach-dl] Added $archive_path
PHPBB3-11042
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/download/file.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index d33e1723ca..8342ed0d61 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -356,14 +356,15 @@ else
$store_name = 'att_' . time() . '_' . unique_id();
$archive_name = 'attachments' . $suffix;
+ $archive_path = "{$phpbb_root_path}store/{$store_name}{$archive}";
if ($archive === '.zip')
{
- $compress = new compress_zip('w', "{$phpbb_root_path}store/{$store_name}{$archive}");
+ $compress = new compress_zip('w', $archive_path);
}
else
{
- $compress = new compress_tar('w', "{$phpbb_root_path}store/{$store_name}{$archive}", $archive);
+ $compress = new compress_tar('w', $archive_path, $archive);
}
$extensions = array();
@@ -397,7 +398,7 @@ else
$compress->download($store_name, $archive_name);
}
- unlink("{$phpbb_root_path}store/{$store_name}{$archive}");
+ unlink($archive_path);
if ($files_added < 1)
{