mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/15760] Fix write_stream
PHPBB3-15760
This commit is contained in:
@@ -348,6 +348,8 @@ class local implements adapter_interface, stream_interface
|
||||
fclose($stream);
|
||||
throw new exception('STORAGE_CANNOT_COPY_RESOURCE');
|
||||
}
|
||||
|
||||
fclose($stream);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -226,6 +226,7 @@ class storage
|
||||
if ($adapter instanceof stream_interface)
|
||||
{
|
||||
$adapter->write_stream($path, $resource);
|
||||
$this->track_file($path);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user