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

This commit is contained in:
tjhunt
2008-07-15 09:18:35 +00:00
parent 390b1cf724
commit 0df32c07c7
+1 -1
View File
@@ -35,7 +35,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;