MDL-14413 - Invalid function name - is_image_by_extentsion in QTI export

This commit is contained in:
tjhunt
2008-07-15 09:18:36 +00:00
parent a33fa3ad83
commit e6099294d5
+1 -1
View File
@@ -37,7 +37,7 @@ function get_course_media_files($courseid)
* @param string $file the filename
* @return boolean
*/
function is_image_by_extentsion($file) {
function is_image_by_extension($file) {
$extensionsregex = '/\.(gif|jpg|jpeg|jpe|png|tif|tiff|bmp|xbm|rgb|svf)$/';
if (preg_match($extensionsregex, $file)) {
return true;