From 5e806196e94a14f277b322d816ecef80c20c7ee5 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 30 Nov 2012 15:34:11 +0100 Subject: [PATCH] Minor - cosmetic changes --- main/exercice/exercise_result.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/main/exercice/exercise_result.php b/main/exercice/exercise_result.php index cf6bddaecc..145227e522 100644 --- a/main/exercice/exercise_result.php +++ b/main/exercice/exercise_result.php @@ -148,11 +148,10 @@ if (isset($session_control_key) && !exercise_time_control_is_valid($objExercise- exercise_time_control_delete($objExercise->id, $learnpath_id, $learnpath_item_id); delete_chat_exercise_session($exe_id); - if ($origin != 'learnpath') { echo '
'; echo Display::url(get_lang('ReturnToCourseHomepage'), api_get_course_url(), array('class' => 'btn btn-large')); - + if (api_is_allowed_to_session_edit()) { Session::erase('objExercise'); Session::erase('exe_id'); @@ -162,16 +161,14 @@ if ($origin != 'learnpath') { } else { $lp_mode = $_SESSION['lp_mode']; $url = '../newscorm/lp_controller.php?cidReq='.api_get_course_id().'&action=view&lp_id='.$learnpath_id.'&lp_item_id='.$learnpath_item_id.'&exeId='.$exercise_stat_info['exe_id'].'&fb_type='.$objExercise->feedback_type; - //echo $total_score.','.$total_weight; exit; $href = ($lp_mode == 'fullscreen')?' window.opener.location.href="'.$url.'" ':' top.location.href="'.$url.'"'; - + if (api_is_allowed_to_session_edit()) { Session::erase('objExercise'); Session::erase('exe_id'); } - - echo ''; //record the results in the learning path, using the SCORM interface (API) - echo ''; + echo ''; + echo ''; echo ''; } \ No newline at end of file