diff --git a/backup/converter/moodle1/simpletest/testconverter.php b/backup/converter/moodle1/simpletest/testconverter.php index e448a2a7b6d..2c5373ed8ea 100644 --- a/backup/converter/moodle1/simpletest/testconverter.php +++ b/backup/converter/moodle1/simpletest/testconverter.php @@ -24,7 +24,9 @@ class moodle1_converter_test extends UnitTestCase { public function tearDown() { global $CFG; - fulldelete("$CFG->dataroot/temp/backup/$this->tempdir"); + if (empty($CFG->keeptempdirectoriesonbackup)) { + fulldelete("$CFG->dataroot/temp/backup/$this->tempdir"); + } } public function test_can_convert() { @@ -38,4 +40,4 @@ class moodle1_converter_test extends UnitTestCase { $this->assertIsA($converter, 'moodle1_converter'); $converter->convert(); } -} \ No newline at end of file +} diff --git a/backup/util/helper/convert_structure_parser_processor.class.php b/backup/util/helper/convert_structure_parser_processor.class.php index 066310a5d8e..9695ff7d66a 100644 --- a/backup/util/helper/convert_structure_parser_processor.class.php +++ b/backup/util/helper/convert_structure_parser_processor.class.php @@ -69,4 +69,12 @@ class convert_structure_parser_processor extends grouped_parser_processor { protected function dispatch_chunk($data) { $this->converter->process($data); } -} \ No newline at end of file + + protected function notify_path_start($path) { + // Do nothing + } + + protected function notify_path_end($path) { + // Do nothing + } +}