Skip to content

Commit

Permalink
MDL-54769 backup: add missing error language string
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Jun 1, 2016
1 parent b1b097e commit 88ed1fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backup/moodle2/restore_qtype_plugin.class.php
Expand Up @@ -181,7 +181,7 @@ public function process_question_answer($data) {
$info = new stdClass();
$info->filequestionid = $oldquestionid;
$info->dbquestionid = $newquestionid;
$info->answer = $data->answertext;
$info->answer = s($data->answertext);
throw new restore_step_exception('error_question_answers_missing_in_db', $info);
}
$newitemid = $this->questionanswercache[$data->answertext];
Expand Down
1 change: 1 addition & 0 deletions lang/en/error.php
Expand Up @@ -224,6 +224,7 @@
$string['duplicateusername'] = 'Duplicate username - skipping record';
$string['emailfail'] = 'Emailing failed';
$string['error'] = 'Error occurred';
$string['error_question_answers_missing_in_db'] = 'Failed to find an answer matching "{$a->answer}" in the question_answers database table. This occurred while restoring the question with id {$a->filequestionid} in the backup file, which has been matched to the existing question with id {$a->dbquestionid} in the database.';
$string['errorprocessingarchive'] = 'Error processing archive file';
$string['errorcleaningdirectory'] = 'Error cleaning directory "{$a}"';
$string['errorcopyingfiles'] = 'Error copying files';
Expand Down

0 comments on commit 88ed1fa

Please sign in to comment.