Update storage.php
This commit is contained in:
parent
28b426e304
commit
777fb92a46
|
|
@ -173,3 +173,9 @@ function retrieve_storage_files($type, $recursive=false, $excludes=array(".", ".
|
|||
}
|
||||
return $files;
|
||||
}
|
||||
|
||||
function check_file_extension($file, $extension) {
|
||||
$found_extension = pathinfo($file, PATHINFO_EXTENSION);
|
||||
return ($found_extension === $extension);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user