mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/15342] Move call to remove file
PHPBB3-15342
This commit is contained in:
@@ -199,6 +199,7 @@ class upload
|
|||||||
// Check for attachment quota and free space
|
// Check for attachment quota and free space
|
||||||
if (!$this->check_attach_quota() || !$this->check_disk_space())
|
if (!$this->check_attach_quota() || !$this->check_disk_space())
|
||||||
{
|
{
|
||||||
|
$this->file->remove($this->storage);
|
||||||
return $this->file_data;
|
return $this->file_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,8 +322,6 @@ class upload
|
|||||||
$this->file_data['error'][] = $this->language->lang('ATTACH_QUOTA_REACHED');
|
$this->file_data['error'][] = $this->language->lang('ATTACH_QUOTA_REACHED');
|
||||||
$this->file_data['post_attach'] = false;
|
$this->file_data['post_attach'] = false;
|
||||||
|
|
||||||
$this->file->remove($this->storage);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -353,8 +352,6 @@ class upload
|
|||||||
}
|
}
|
||||||
$this->file_data['post_attach'] = false;
|
$this->file_data['post_attach'] = false;
|
||||||
|
|
||||||
$this->file->remove($this->storage);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user