Permalink
Browse files

MDL-39546 Lesson module: removed duplicate to decode special characters

  • Loading branch information...
1 parent de42137 commit 919a40f31c5822ddc78288f5b1b5e80357649adf @rwijaya rwijaya committed with Sam Hemelryk May 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lesson/pagetypes/matching.php
@@ -180,7 +180,7 @@ public function check_answer() {
return $result;
}
$value = htmlspecialchars_decode($value);
- $userresponse[] = htmlspecialchars_decode($value);
+ $userresponse[] = $value;
// Make sure the user's answer exists in question's answer
if (array_key_exists($id, $answers)) {
$answer = $answers[$id];
@@ -524,7 +524,7 @@ public function definition() {
$responseid = 'response['.$answer->id.']';
if ($hasattempt) {
$responseid = 'response_'.$answer->id;
- $mform->addE lement('hidden', 'response['.$answer->id.']', htmlspecialchars($useranswers[$i]));
+ $mform->addElement('hidden', 'response['.$answer->id.']', htmlspecialchars($useranswers[$i]));
$mform->setType('response['.$answer->id.']', PARAM_TEXT);
}
$mform->addElement('select', $responseid, format_text($answer->answer,$answer->answerformat,$options), $responseoptions, $disabled);

0 comments on commit 919a40f

Please sign in to comment.