mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -428,9 +428,16 @@ class local implements adapter_interface, stream_interface
|
||||
*/
|
||||
public function free_space()
|
||||
{
|
||||
$free_space = @disk_free_space($this->root_path);
|
||||
if (function_exists('disk_free_space'))
|
||||
{
|
||||
$free_space = @disk_free_space($this->root_path);
|
||||
|
||||
if ($free_space === false)
|
||||
if ($free_space === false)
|
||||
{
|
||||
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
|
||||
}
|
||||
|
Reference in New Issue
Block a user