case insensitive on the image extensions from the imported package
[acontent.git] / docs / include / classes / QTI / QTIImport.class.php
index fbf3983..9ee938c 100644 (file)
@@ -110,7 +110,7 @@ class QTIImport {
                                                continue;
                                        } 
 
-                                       if (in_array($file_pathinfo['extension'], $supported_media_type)){
+                                       if (in_array(strtolower($file_pathinfo['extension']), $supported_media_type)){
                                                //copy medias over.
                                                $this->copyMedia(array($file_name), $xml->items);
                                        }