From 43fb9ced67ae6105a7c70c809cb9cf964a28b9de Mon Sep 17 00:00:00 2001 From: Daniel Kosinski Date: Tue, 5 Aug 2014 23:31:20 +0200 Subject: [PATCH] MDL-46219 assignment: delete files when resetting assign activities --- mod/assign/locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 54ae1bb70cd..ee693e8bec1 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -717,7 +717,7 @@ class assign { $fileareas = array(); $plugincomponent = $plugin->get_subtype() . '_' . $plugin->get_type(); $fileareas = $plugin->get_file_areas(); - foreach ($fileareas as $filearea) { + foreach ($fileareas as $filearea => $notused) { $fs->delete_area_files($this->context->id, $plugincomponent, $filearea); } @@ -732,7 +732,7 @@ class assign { $fileareas = array(); $plugincomponent = $plugin->get_subtype() . '_' . $plugin->get_type(); $fileareas = $plugin->get_file_areas(); - foreach ($fileareas as $filearea) { + foreach ($fileareas as $filearea => $notused) { $fs->delete_area_files($this->context->id, $plugincomponent, $filearea); }