aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-08-08 12:34:39 +0200
committerRubén Calvo <rubencm@gmail.com>2017-08-25 15:31:58 +0200
commit8a47fd4120405ec45bdfd082847a275761a4693c (patch)
tree8553080ef6dff1d16ba10594b61c1cb7df6c3973 /phpBB/includes/functions_download.php
parent[ticket/15276] Fix file_info errors (diff)
downloadphpbb-8a47fd4120405ec45bdfd082847a275761a4693c.tar.gz
phpbb-8a47fd4120405ec45bdfd082847a275761a4693c.tar.bz2
phpbb-8a47fd4120405ec45bdfd082847a275761a4693c.zip
[ticket/15276] Remove old code
PHPBB3-15276
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r--phpBB/includes/functions_download.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index 1ad6dfc092..830da2b90d 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -83,20 +83,6 @@ function send_avatar_to_browser($file, $browser)
// Just dont send this header
}
- if (@readfile($file_path) == false)
- {
- $fp = @fopen($file_path, 'rb');
-
- if ($fp !== false)
- {
- while (!feof($fp))
- {
- echo fread($fp, 8192);
- }
- fclose($fp);
- }
- }
-
try {
$fp = $storage->read_stream($file_path);