Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 301d9518edc9ee9a1d19c1e6236817827fa7f9c5 1 parent 3c108a9
@rwijaya rwijaya authored samhemelryk committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lesson/pagetypes/matching.php
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.