aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-14 13:24:59 +0100
committerFyorl <gaelreth@gmail.com>2012-08-14 13:24:59 +0100
commitc4b28a393624e99c82834e1b793b66f129f098de (patch)
tree52cc3ee69ba78ead21212c1508a180d939423905 /phpBB/download
parentbe27afa1c7b13eae0bc7c4e70433ddced4af31b4 (diff)
downloadforums-c4b28a393624e99c82834e1b793b66f129f098de.tar
forums-c4b28a393624e99c82834e1b793b66f129f098de.tar.gz
forums-c4b28a393624e99c82834e1b793b66f129f098de.tar.bz2
forums-c4b28a393624e99c82834e1b793b66f129f098de.tar.xz
forums-c4b28a393624e99c82834e1b793b66f129f098de.zip
[feature/attach-dl] Renamed $count to $files_added
PHPBB3-11042
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 58b99fc4ef..e21aec5ee7 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -367,7 +367,7 @@ else
}
$extensions = array();
- $count = 0;
+ $files_added = 0;
$forum_id = ($attachment['in_message']) ? false : $row['forum_id'];
$disallowed = array();
@@ -386,12 +386,12 @@ else
}
$compress->add_custom_file("{$phpbb_root_path}files/{$attach['physical_filename']}", "{$prefix}{$attach['real_filename']}");
- $count++;
+ $file_added++;
}
$compress->close();
- if ($count > 0)
+ if ($files_added > 0)
{
phpbb_increment_downloads($db, $attachment_ids);
$compress->download($store_name, $archive_name);
@@ -399,7 +399,7 @@ else
unlink("{$phpbb_root_path}store/{$store_name}{$archive}");
- if ($count < 1)
+ if ($files_added < 1)
{
// None of the attachments had a valid a extension
$disallowed = implode(', ', $disallowed);