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

[ticket/15276] Update file_info to get size of images

PHPBB3-15276
This commit is contained in:
Rubén Calvo
2017-08-09 22:08:45 +02:00
parent 3c60333725
commit 09856aeb26
9 changed files with 87 additions and 48 deletions

View File

@@ -193,6 +193,15 @@ class storage
}
}
/**
* Get file info.
*
* @param string $path The file
*
* @throws \phpbb\storage\exception\not_implemented When the adapter doesnt implement the method
*
* @return \phpbb\storage\file_info Returns file_info object
*/
public function file_info($path)
{
return new file_info($this->adapter, $path);