mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15276] Remove old code
PHPBB3-15276
This commit is contained in:
parent
006990f1d0
commit
8a47fd4120
1 changed files with 0 additions and 14 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue