From 263f258ae24fcb77d025de0fa0ef1d338df50f90 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 1 Aug 2011 10:27:39 +1200 Subject: [PATCH] MDL-28548 allow backup to contain info from multiple plagiarism plugins. --- backup/moodle2/backup_stepslib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/moodle2/backup_stepslib.php b/backup/moodle2/backup_stepslib.php index ffc310e0d6f..0a1f9fa4efe 100644 --- a/backup/moodle2/backup_stepslib.php +++ b/backup/moodle2/backup_stepslib.php @@ -320,7 +320,7 @@ class backup_module_structure_step extends backup_structure_step { $this->add_plugin_structure('format', $module, false); // attach plagiarism plugin structure to $module element, only one allowed - $this->add_plugin_structure('plagiarism', $module, false); + $this->add_plugin_structure('plagiarism', $module, true); // Define the tree $module->add_child($availinfo); @@ -422,7 +422,7 @@ class backup_course_structure_step extends backup_structure_step { $this->add_plugin_structure('coursereport', $course, true); // attach plagiarism plugin structure to $course element, only one allowed - $this->add_plugin_structure('plagiarism', $course, false); + $this->add_plugin_structure('plagiarism', $course, true); // Build the tree