Skip to content
Permalink
Browse files
Merge branch 'MDL-61040-33' of git://github.com/junpataleta/moodle in…
…to MOODLE_33_STABLE
  • Loading branch information
David Monllao committed Dec 18, 2017
2 parents 652948b + 2d9efe5 commit 23d7a70ef3917649b704d3343ea3f4bedc2cb7da
Showing with 3 additions and 2 deletions.
  1. +1 −1 mod/choice/renderer.php
  2. +2 −1 mod/choice/view.php
@@ -93,7 +93,7 @@ public function display_options($options, $coursemoduleid, $vertical = false, $m
if (!empty($options['allowupdate']) && ($options['allowupdate'])) {
$url = new moodle_url('view.php',
array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey()));
$html .= html_writer::link($url, get_string('removemychoice', 'choice'));
$html .= html_writer::link($url, get_string('removemychoice', 'choice'), array('class' => 'm-l-1'));
}
} else {
$html .= html_writer::tag('label', get_string('havetologin', 'choice'));
@@ -203,7 +203,8 @@
if (choice_can_view_results($choice, $current, $choiceopen)) {
$results = prepare_choice_show_results($choice, $course, $cm, $allresponses);
$renderer = $PAGE->get_renderer('mod_choice');
echo $renderer->display_result($results);
$resultstable = $renderer->display_result($results);
echo $OUTPUT->box($resultstable);

} else if (!$choiceformshown) {
echo $OUTPUT->box(get_string('noresultsviewable', 'choice'));

0 comments on commit 23d7a70

Please sign in to comment.