]> git.mjollnir.org Git - moodle.git/commitdiff
Improving multichoice display MDL-14763: cleaning code from echos and print_r
authorpichetp <pichetp>
Wed, 3 Sep 2008 18:24:10 +0000 (18:24 +0000)
committerpichetp <pichetp>
Wed, 3 Sep 2008 18:24:10 +0000 (18:24 +0000)
question/type/multianswer/questiontype.php

index 75c15ac74672bf749a2c5c55ec78187a03dc338d..03f2ec17e7aad15d89a34ea18520c34b56f84655 100644 (file)
@@ -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 = '';