diff --git a/main/exercice/exercise_reminder.php b/main/exercice/exercise_reminder.php index bce2e5e743..d821fc5804 100644 --- a/main/exercice/exercise_reminder.php +++ b/main/exercice/exercise_reminder.php @@ -40,10 +40,10 @@ if ( empty ($exerciseId)) { $exerciseId = intval($_REQUEST['exerciseId']);} if ( empty ($objExercise)) { $objExercise = $_SESSION['objExercise'];} if (!$objExercise) { - //Redirect to the exercise overview - //Check if the exe_id exists - header("Location: overview.php?exerciseId=".$exerciseId); - exit; + // Redirect to the exercise overview + // Check if the exe_id exists + header("Location: ".$urlMainExercise."overview.php?exerciseId=".$exerciseId."&".api_get_cidreq()); + exit; } $time_control = false; @@ -54,7 +54,7 @@ if ($objExercise->expired_time != 0 && !empty($clock_expired_time)) { } if ($time_control) { - // Get time left for exipiring time + // Get time left for expiring time $time_left = api_strtotime($clock_expired_time,'UTC') - time(); $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/stylesheet/jquery.epiclock.css'); $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css'); @@ -107,37 +107,10 @@ echo Display::div('', array('id' => 'message')); $urlMainExercise = api_get_path(WEB_CODE_PATH).'exercice/'; -echo '