Permalink
Browse files

this time..... :-)

  • Loading branch information...
1 parent 649084b commit 74550a3cbd513418aaf92ea761461aacc3e2c341 danmarsden committed Mar 31, 2005
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/choice/view.php
View
@@ -128,12 +128,14 @@
break;
case CHOICE_DISPLAY_VERTICAL:
+ $options = NULL;
+ $options->para = false;
echo "<table cellpadding=\"10\" cellspacing=\"10\" align=\"center\">";
foreach ($choice->option as $optionid => $text) {
if ($text) {
echo "<tr><td align=\"left\">";
- echo "<input type=\"radio\" name=\"answer\" value=\"".$optionid."\" ".$answerchecked[$optionid]." alt=\"".strip_tags(format_text($text))."\" />".
- format_text($text);
+ echo "<input type=\"radio\" name=\"answer\" value=\"".$optionid."\" ".$answerchecked[$optionid]." alt=\"".strip_tags(format_text($text, FORMAT_MOODLE, $options))."\" />".
+ format_text($text, FORMAT_MOODLE, $options);
echo "</td>";
echo "</tr>";
}

0 comments on commit 74550a3

Please sign in to comment.