From 3def8fe817203b25125aef4cf00f901f63d637a0 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 6 Aug 2013 14:02:54 +0200 Subject: [PATCH] Fixes from 1.10 --- main/exercice/exercise_reminder.php | 54 +++++---------------------- main/exercice/question.class.php | 2 +- main/exercice/unique_answer.class.php | 4 ++ 3 files changed, 14 insertions(+), 46 deletions(-) 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 '