aboutsummaryrefslogtreecommitdiff
path: root/backup/moodle2/restore_qtype_algebra_plugin.class.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2013-04-27 22:54:57 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2013-04-27 22:54:57 +0200
commitfcf99b5bc918837d990e638b613da7357ad36532 (patch)
treec404c7cf45877cca8b0eef7a588dcf15afa8c1fa /backup/moodle2/restore_qtype_algebra_plugin.class.php
parent14da1f7131ac7ddd33c97b6e131beb2d13fb208e (diff)
Changes before release
Diffstat (limited to 'backup/moodle2/restore_qtype_algebra_plugin.class.php')
-rw-r--r--backup/moodle2/restore_qtype_algebra_plugin.class.php4
1 files changed, 2 insertions, 2 deletions
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.
}