Skip to content

Commit

Permalink
Merge pull request #86 from wiris/v4.11.2
Browse files Browse the repository at this point in the history
v4.11.2
  • Loading branch information
ptorrent-at-wiris authored May 17, 2024
2 parents 255bb27 + 2bd072d commit 2488107
Show file tree
Hide file tree
Showing 13 changed files with 565 additions and 44 deletions.
6 changes: 3 additions & 3 deletions questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function get_question_options($question) {
$question->options->wirisquestion = $record->xml;
$question->options->wirisoptions = $record->options;
} else {
$OUTPUT->notification( get_string('failedtoloadwirisquizzesfromxml', 'qtype_wq') . ' ' . $question->id . '.');
$OUTPUT->notification(get_string('failedtoloadwirisquizzesfromxml', 'qtype_wq') . ' ' . $question->id . '.');
return false;
}
}
Expand Down Expand Up @@ -165,7 +165,7 @@ public function display_question_editing_page($mform, $question, $wizardnow) {
$PAGE->requires->js('/question/type/wq/quizzes/service.php?name=quizzes.js&service=resource');
}

public function export_to_xml($question, qformat_xml $format, $extra=null) {
public function export_to_xml($question, qformat_xml $format, $extra = null) {
global $DB;
$xml = $DB->get_record('qtype_wq', array('question' => $question->id), 'xml')->xml;

Expand Down Expand Up @@ -263,7 +263,7 @@ protected function wrsqz_hidden_initial_cas_value($data) {

protected function decode_html_entities($xml) {
$htmlentitiestable = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, 'UTF-8');
$xmlentitiestable = get_html_translation_table(HTML_SPECIALCHARS , ENT_COMPAT, 'UTF-8');
$xmlentitiestable = get_html_translation_table(HTML_SPECIALCHARS, ENT_COMPAT, 'UTF-8');
$entitiestable = array_diff($htmlentitiestable, $xmlentitiestable);
$decodetable = array_flip($entitiestable);
$xml = str_replace(array_keys($decodetable), array_values($decodetable), $xml);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,12 @@ public function andChecks($checks) {
$j = null;
$correct = true;
{
$_g1 = 0; $_g = $checks->length;
while($_g1 < $_g) {
$j1 = $_g1++;
$correct = $correct && _hx_array_get($checks, $j1)->value === 1.0;
unset($j1);
$_g = 0;
while($_g < $checks->length) {
$check = $checks[$_g];
++$_g;
$correct = $correct && $check->value > 0.999999;
unset($check);
}
}
return $correct;
Expand Down
35 changes: 35 additions & 0 deletions quizzes/lib/graph.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion quizzes/lib/graph.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 110 additions & 0 deletions quizzes/lib/icons/toolbar/29x29/mediatrixsegment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions quizzes/lib/icons/toolbar/29x29/midpointsegment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2488107

Please sign in to comment.