From e78c7aaa09b620b25d1fe31f4db0712e7e912e18 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 28 Dec 2012 15:38:04 +0100 Subject: [PATCH] Minor - cleaning white spaces --- main/exercice/savescores.php | 83 ++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/main/exercice/savescores.php b/main/exercice/savescores.php index 07b850cb46..c0dfe6f4f9 100644 --- a/main/exercice/savescores.php +++ b/main/exercice/savescores.php @@ -1,28 +1,29 @@ window.parent.API.void_save_asset('$score', '$weighting', 0, 'completed');"; - } + if ($origin == 'learnpath') { + //if we are in a learning path, save the score in the corresponding + //table to get tracking in there as well + global $jscript2run; + //record the results in the learning path, using the SCORM interface (API) + $jscript2run .= ""; + } } // Save the Scores @@ -89,9 +90,9 @@ save_scores($test, $score); // Back if ($origin != 'learnpath') { - $url = "exercice.php"; // back to exercices - $jscript2run .= ''; - echo $jscript2run; + $url = "exercice.php"; // back to exercices + $jscript2run .= ''; + echo $jscript2run; } else { $htmlHeadXtra[] = $jscript2run; Display::display_header();