MDL-26405 restore - incorrectly thrown exception

This commit is contained in:
Eloy Lafuente (stronk7)
2011-02-15 23:28:00 +01:00
parent d911c72bf9
commit 0ff7159edb
@@ -139,7 +139,7 @@ abstract class restore_qtype_plugin extends restore_plugin {
$info->filequestionid = $oldquestionid;
$info->dbquestionid = $newquestionid;
$info->answer = $data->answertext;
throw restore_step_exception('error_question_answers_missing_in_db', $info);
throw new restore_step_exception('error_question_answers_missing_in_db', $info);
}
}
// Create mapping (we'll use this intensively when restoring question_states. And also answerfeedback files)