mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
Improving multichoice display MDL-14763: cleaning code from echos and print_r
This commit is contained in:
parent
c9e745468f
commit
5967aa032d
@ -420,7 +420,6 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||
echo $feedbackimg;
|
||||
break;
|
||||
case 'multichoice':
|
||||
// echo "<p>layout <pre>".$wrapped->options->layout;print_r($wrapped->options);echo "</pre><p>";
|
||||
if ($wrapped->options->layout == 0 ){
|
||||
$outputoptions = '<option></option>'; // Default empty option
|
||||
foreach ($answers as $mcanswer) {
|
||||
@ -447,8 +446,6 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||
}
|
||||
echo $feedbackimg;
|
||||
}else if ($wrapped->options->layout == 1 || $wrapped->options->layout == 2){
|
||||
// echo "vertical";
|
||||
// echo "<p>answers <pre>";print_r($answers);echo "</pre><p>";
|
||||
$ordernumber=0;
|
||||
$anss = Array();
|
||||
foreach ($answers as $mcanswer) {
|
||||
@ -463,7 +460,6 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||
}
|
||||
$a = new stdClass;
|
||||
$a->id = $question->name_prefix . $mcanswer->id;
|
||||
// echo "aid ".$a->id ;
|
||||
$a->class = '';
|
||||
$a->feedbackimg = '';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user