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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user