From 8a47fd4120405ec45bdfd082847a275761a4693c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Tue, 8 Aug 2017 12:34:39 +0200 Subject: [PATCH] [ticket/15276] Remove old code PHPBB3-15276 --- phpBB/includes/functions_download.php | 14 -------------- 1 file changed, 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);