1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/15692] Move checks if file exist from adapter to storage

PHPBB3-15692
This commit is contained in:
Rubén Calvo
2018-06-15 15:54:16 +02:00
parent d098020e72
commit 1d43e15c60
3 changed files with 96 additions and 24 deletions

View File

@@ -118,11 +118,6 @@ class local implements adapter_interface, stream_interface
{
$this->ensure_directory_exists($path);
if ($this->exists($path))
{
throw new exception('STORAGE_FILE_EXISTS', $path);
}
try
{
$this->filesystem->dump_file($this->root_path . $this->get_path($path) . $this->get_filename($path), $content);