1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Issue #4270 WebP support in Media Manager

This commit is contained in:
Cameron
2020-12-07 15:18:14 -08:00
parent ca1df9d4f3
commit 25c1592e8a
6 changed files with 138 additions and 59 deletions

View File

@@ -401,11 +401,11 @@ class e_file
* @param boolean $auto_fix_ext
* @return array|bool
*/
function get_file_info($path_to_file, $imgcheck = true, $auto_fix_ext = true)
public function get_file_info($path_to_file, $imgcheck = true, $auto_fix_ext = true)
{
$finfo = array();
if(filesize($path_to_file) < 2) // Don't try and read 0 byte files.
if(!file_exists($path_to_file) || filesize($path_to_file) < 2) // Don't try and read 0 byte files.
{
return false;
}