diff --git a/question/format/qti_two/qt_common.php b/question/format/qti_two/qt_common.php index 10229a2e4af..a94394f3213 100644 --- a/question/format/qti_two/qt_common.php +++ b/question/format/qti_two/qt_common.php @@ -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;