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[] = "