Add text when finished after a test in learning path - ref #4227

skala
Hubert Borderiou 13 years ago
parent ac2a52b71b
commit 03d5d2b190
  1. 4
      main/exercice/exercise_result.php
  2. 7
      main/exercice/exercise_show.php

@ -153,8 +153,10 @@ if ($show_results || $show_only_score) {
Display :: display_confirmation_message(get_lang('Saved').'<br />',false); Display :: display_confirmation_message(get_lang('Saved').'<br />',false);
// Display text when test is finished #4074 // Display text when test is finished #4074
// Don't display the text when finished message if we are from a LP #4227
// but display it from page exercice_show.php
$end_of_message = $objExercise->selectTextWhenFinished(); $end_of_message = $objExercise->selectTextWhenFinished();
if (!empty($end_of_message)) { if (!empty($end_of_message) && ($origin != 'learnpath')) {
Display::display_normal_message($end_of_message, false); Display::display_normal_message($end_of_message, false);
echo "<div class='clear'>&nbsp;</div>"; echo "<div class='clear'>&nbsp;</div>";
} }

@ -258,6 +258,13 @@ if (!empty($track_exercise_info['data_tracking']) && !empty($track_exercise_info
} }
} }
// Display the text when finished message if we are on a LP #4227
$end_of_message = $objExercise->selectTextWhenFinished();
if (!empty($end_of_message) && ($origin == 'learnpath')) {
Display::display_normal_message($end_of_message, false);
echo "<div class='clear'>&nbsp;</div>";
}
// for each question // for each question
$total_weighting = 0; $total_weighting = 0;
foreach ($questionList as $questionId) { foreach ($questionList as $questionId) {

Loading…
Cancel
Save