1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15276] Use streams

PHPBB3-15276
This commit is contained in:
Rubén Calvo
2017-08-08 12:25:24 +02:00
parent 946f0348a2
commit 9e018e7c12
4 changed files with 35 additions and 9 deletions

View File

@@ -236,17 +236,17 @@ class local implements adapter_interface, stream_interface
}
}
public function get_file_info($path)
public function file_properties($path)
{
return [];
}
public function get_size($path)
public function file_size($path)
{
return filesize($this->root_path . $path);
}
public function get_mimetype($path)
public function file_mimetype($path)
{
return mime_content_type($this->root_path . $path);
}