MDL-28548 allow backup to contain info from multiple plagiarism plugins.

This commit is contained in:
Dan Marsden 2011-08-01 10:27:39 +12:00
parent ca3e8e98a4
commit 040aa0880b

View File

@ -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