From fcaf99de5a15d71e7b851263e37e69a330d8d0fd Mon Sep 17 00:00:00 2001 From: iflores Date: Thu, 14 Jan 2010 11:56:39 -0500 Subject: [PATCH] The time control is not displayed in the learnpath --- main/exercice/exercice_submit.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index 131617c88e..8dd5a62298 100755 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -196,7 +196,8 @@ $total_minutes = $exercise_row["expired_time"]; $total_seconds = $total_minutes*60; $current_timestamp = time(); -if ($exercise_row['expired_time'] != 0) { +//Disable for learning path +if ($exercise_row['expired_time'] != 0 && $origin != 'learnpath') { if (!isset($_SESSION['expired_time'])) { //In case that the current session php is broken //Timer - Get expired_time for a student @@ -265,7 +266,9 @@ if ($exercise_row['expired_time'] != 0) { * The time control feature is enable here - this feature is enable for a jquery plugin called epiclock * for more details of how it works see this link : http://eric.garside.name/docs.html?p=epiclock */ -if ($exercise_row['expired_time'] != 0) { //Sends the exercice form when the expired time is finished + +//Disable for learning path +if ($exercise_row['expired_time'] != 0 && $origin != 'learnpath') { //Sends the exercice form when the expired time is finished $htmlHeadXtra[] = "