Browse Source

Fix footer exercise result pages inside of Lp - refs BT#13302

Angel Fernando Quiroz Campos 7 years ago
parent
commit
c3466323ce
2 changed files with 4 additions and 1 deletions
  1. 2 1
      main/exercise/exercise_result.php
  2. 2 0
      main/exercise/result.php

+ 2 - 1
main/exercise/exercise_result.php

@@ -219,5 +219,6 @@ if ($origin != 'learnpath') {
     // Record the results in the learning path, using the SCORM interface (API)
     echo "<script>window.parent.API.void_save_asset('$total_score', '$max_score', 0, 'completed');</script>";
     echo '<script type="text/javascript">'.$href.'</script>';
-    echo '</body></html>';
+
+    Display::display_reduced_footer();
 }

+ 2 - 0
main/exercise/result.php

@@ -85,4 +85,6 @@ ExerciseLib::displayQuestionListByAttempt(
 echo '</div>';
 if ($show_headers) {
     Display::display_footer();
+} else {
+    Display::display_reduced_footer();
 }