Skip to content

Commit

Permalink
quiz: MDL-21404 Fix Petr's screw-up when converting to js_writer.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 8, 2010
1 parent 7c1b615 commit cdede6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/attempt.php
Expand Up @@ -134,7 +134,7 @@
// A quiz page with a lot of questions can take a long time to load, and we
// want the protection afforded by init_quiz_form immediately, so include the
// JS now.
echo js_writer::function_call('init_quiz_form');
echo html_writer::script(js_writer::function_call('init_quiz_form'));
echo '<div>';

/// Print all the questions
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/attemptlib.php
Expand Up @@ -1125,7 +1125,7 @@ protected function get_end_bits() {
$output = '';
$output .= '<a href="' . s($this->attemptobj->summary_url()) . '" class="endtestlink">' . get_string('endtest', 'quiz') . '</a>';
$output .= $this->attemptobj->get_timer_html();
$output .= js_writer::function_call('quiz_init_attempt_nav');
$output .= html_writer::script(js_writer::function_call('quiz_init_attempt_nav'));
return $output;
}
}
Expand Down

0 comments on commit cdede6f

Please sign in to comment.