MDL-52489 mod_assign: fixed issue with files being excluded

This commit is contained in:
Mark Nelson
2016-02-26 12:09:30 +08:00
parent 18a5b4d85c
commit 5a2c7af2d3
+1 -1
View File
@@ -59,7 +59,7 @@ class assignfeedback_file_zip_importer {
return false;
}
preg_match('#.*_([0-9]{1,})_(.*)_(.*)_(.*)#i', $fileinfo->get_filepath().$fileinfo->get_filename(), $info);
$info = explode('_', $fileinfo->get_filepath() . $fileinfo->get_filename(), 5);
if (count($info) < 5) {
return false;