mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15305] Use streams in filespec
PHPBB3-15305
This commit is contained in:
parent
d89df35959
commit
55f3452e2d
1 changed files with 3 additions and 1 deletions
|
@ -447,7 +447,9 @@ class filespec_storage
|
|||
|
||||
try
|
||||
{
|
||||
$storage->put_contents($this->destination_file, file_get_contents($this->filename));
|
||||
$fp = fopen($this->filename, 'rb');
|
||||
$storage->write_stream($this->destination_file, $fp);
|
||||
fclose($fp);
|
||||
}
|
||||
catch (\phpbb\storage\exception\exception $e)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue