diff --git a/resources/library/file.php b/resources/library/file.php index 7bd2952..868139f 100644 --- a/resources/library/file.php +++ b/resources/library/file.php @@ -51,7 +51,7 @@ function write_metadata($filepath, $source) // Return the file-extension of a filename. function file_extension($file_name) { - return pathinfo($file_name, PATHINFO_EXTENSION); + return strtolower(pathinfo($file_name, PATHINFO_EXTENSION)); }