From fcf99b5bc918837d990e638b613da7357ad36532 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sat, 27 Apr 2013 22:54:57 +0200 Subject: Changes before release --- backup/moodle2/backup_qtype_algebra_plugin.class.php | 2 +- backup/moodle2/restore_qtype_algebra_plugin.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backup') diff --git a/backup/moodle2/backup_qtype_algebra_plugin.class.php b/backup/moodle2/backup_qtype_algebra_plugin.class.php index e55e1e0..4f7708f 100644 --- a/backup/moodle2/backup_qtype_algebra_plugin.class.php +++ b/backup/moodle2/backup_qtype_algebra_plugin.class.php @@ -62,7 +62,7 @@ class backup_qtype_algebra_plugin extends backup_qtype_plugin { $pluginwrapper->add_child($algebra); // Set source to populate the data. - $algebra->set_source_table('qtype_algebra', array('questionid' => backup::VAR_PARENTID)); + $algebra->set_source_table('qtype_algebra_options', array('questionid' => backup::VAR_PARENTID)); $algebravariable->set_source_table('qtype_algebra_variables', array('question' => backup::VAR_PARENTID)); // Don't need to annotate ids nor files. diff --git a/backup/moodle2/restore_qtype_algebra_plugin.class.php b/backup/moodle2/restore_qtype_algebra_plugin.class.php index 58acf2d..013b70c 100644 --- a/backup/moodle2/restore_qtype_algebra_plugin.class.php +++ b/backup/moodle2/restore_qtype_algebra_plugin.class.php @@ -67,9 +67,9 @@ class restore_qtype_algebra_plugin extends restore_qtype_plugin { // Adjust some columns. $data->questionid = $newquestionid; // Insert record. - $newitemid = $DB->insert_record('qtype_algebra', $data); + $newitemid = $DB->insert_record('qtype_algebra_options', $data); // Create mapping (needed for decoding links). - $this->set_mapping('qtype_algebra', $oldid, $newitemid); + $this->set_mapping('qtype_algebra_options', $oldid, $newitemid); } // Nothing to remap if the question already existed. } -- cgit v1.2.3