mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -427,6 +427,8 @@ class local implements adapter_interface, stream_interface
|
|||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function free_space()
|
public function free_space()
|
||||||
|
{
|
||||||
|
if (function_exists('disk_free_space'))
|
||||||
{
|
{
|
||||||
$free_space = @disk_free_space($this->root_path);
|
$free_space = @disk_free_space($this->root_path);
|
||||||
|
|
||||||
@@ -434,6 +436,11 @@ class local implements adapter_interface, stream_interface
|
|||||||
{
|
{
|
||||||
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
|
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
|
||||||
|
}
|
||||||
|
|
||||||
return $free_space;
|
return $free_space;
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,7 @@ class phpbb_attachment_upload_test extends \phpbb_database_test_case
|
|||||||
'img_create_thumbnail' => true,
|
'img_create_thumbnail' => true,
|
||||||
));
|
));
|
||||||
$config = $this->config;
|
$config = $this->config;
|
||||||
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
$this->db = $this->new_dbal();
|
$this->db = $this->new_dbal();
|
||||||
$this->cache = new \phpbb\cache\service(new \phpbb\cache\driver\dummy(), $this->config, $this->db, $phpbb_root_path, $phpEx);
|
$this->cache = new \phpbb\cache\service(new \phpbb\cache\driver\dummy(), $this->config, $this->db, $phpbb_root_path, $phpEx);
|
||||||
$this->request = $this->createMock('\phpbb\request\request');
|
$this->request = $this->createMock('\phpbb\request\request');
|
||||||
|
Reference in New Issue
Block a user