MDL-14413 - Invalid function name - is_image_by_extentsion in QTI export
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user