From: Cindy Li Date: Fri, 20 Aug 2010 20:10:26 +0000 (-0000) Subject: case insensitive on the image extensions from the imported package X-Git-Tag: v1.0~26 X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=acontent.git;a=commitdiff_plain;h=d57c3870fab1ae29344a4313ad26d801f79ae9a8 case insensitive on the image extensions from the imported package --- diff --git a/docs/include/classes/QTI/QTIImport.class.php b/docs/include/classes/QTI/QTIImport.class.php index fbf3983..9ee938c 100644 --- a/docs/include/classes/QTI/QTIImport.class.php +++ b/docs/include/classes/QTI/QTIImport.class.php @@ -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); }