Explorar el Código

Fix hotspot answers list

Angel Fernando Quiroz Campos hace 8 años
padre
commit
6bbfe4f9df
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      main/inc/lib/exercise.lib.php

+ 3 - 2
main/inc/lib/exercise.lib.php

@@ -1195,14 +1195,15 @@ HTML;
                     Session::write("hotspot_ordered$questionId", array_keys($answers_hotspot));
                     $countAnswers = 1;
                     foreach ($answers_hotspot as $value) {
-                        $answerList .= "<p>";
+                        $answerList .= "<li>";
                         if ($freeze) {
                             $answerList .= "&nbsp<span class='hotspot-color hotspot-color-$hotspotColor'>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
                         }
                         $answerList .= "&nbsp{$countAnswers}.&nbsp;";
                         $answerList .= $value;
-                        $answerList .= "</p>";
+                        $answerList .= "</li>";
                         $hotspotColor++;
+                        $countAnswers++;
                     }
                 }