Skip to content

Commit

Permalink
Merge branch 'MDL-61040-34' of git://github.com/junpataleta/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_34_STABLE
  • Loading branch information
David Monllao committed Dec 18, 2017
2 parents fb7b015 + 64abea9 commit 1041cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/choice/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
3 changes: 2 additions & 1 deletion mod/choice/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 1041cca

Please sign in to comment.