Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MDL-26405 restore - incorrectly thrown exception
[moodle.git]
/
backup
/
moodle2
/
restore_qtype_plugin.class.php
diff --git
a/backup/moodle2/restore_qtype_plugin.class.php
b/backup/moodle2/restore_qtype_plugin.class.php
index
f3a3b70
..
fb97beb
100644
(file)
--- a/
backup/moodle2/restore_qtype_plugin.class.php
+++ b/
backup/moodle2/restore_qtype_plugin.class.php
@@
-139,7
+139,7
@@
abstract class restore_qtype_plugin extends restore_plugin {
$info->filequestionid = $oldquestionid;
$info->dbquestionid = $newquestionid;
$info->answer = $data->answertext;
$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)
}
}
// Create mapping (we'll use this intensively when restoring question_states. And also answerfeedback files)