[ticket/15276] Remove old code

PHPBB3-15276
This commit is contained in:
Rubén Calvo 2017-08-08 12:34:39 +02:00
parent 006990f1d0
commit 8a47fd4120

View file

@ -83,20 +83,6 @@ function send_avatar_to_browser($file, $browser)
// Just dont send this header // 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 { try {
$fp = $storage->read_stream($file_path); $fp = $storage->read_stream($file_path);