Minor - Code spacing

1.10.x
Yannick Warnier 11 years ago
parent dd21f1e289
commit 1d082e92ea
  1. 32
      main/exercice/exercise_reminder.php

@ -14,17 +14,31 @@ $this_section = SECTION_COURSES;
// notice for unauthorized people. // notice for unauthorized people.
api_protect_course_script(true); api_protect_course_script(true);
if($debug>0){error_log('Entered exercise_result.php: '.print_r($_POST,1));} if ($debug>0) {
error_log('Entered exercise_result.php: '.print_r($_POST, 1));
}
// general parameters passed via POST/GET // general parameters passed via POST/GET
if ( empty ( $origin ) ) { $origin = Security::remove_XSS($_REQUEST['origin']);} if (empty ($origin)) {
if ( empty ( $learnpath_id ) ) { $learnpath_id = intval($_REQUEST['learnpath_id']);} $origin = Security::remove_XSS($_REQUEST['origin']);
if ( empty ( $learnpath_item_id ) ) { $learnpath_item_id = intval($_REQUEST['learnpath_item_id']);} }
if ( empty ( $learnpath_item_view_id ) ) { $learnpath_item_view_id = intval($_REQUEST['learnpath_item_view_id']);} if (empty($learnpath_id)) {
$learnpath_id = intval($_REQUEST['learnpath_id']);
}
if (empty($learnpath_item_id)) {
$learnpath_item_id = intval($_REQUEST['learnpath_item_id']);
}
if (empty($learnpath_item_view_id)) {
$learnpath_item_view_id = intval($_REQUEST['learnpath_item_view_id']);
}
if ( empty ($exerciseId)) { $exerciseId = intval($_REQUEST['exerciseId']);} if (empty($exerciseId)) {
$exerciseId = intval($_REQUEST['exerciseId']);
}
if ( empty ($objExercise)) { $objExercise = $_SESSION['objExercise'];} if (empty($objExercise)) {
$objExercise = $_SESSION['objExercise'];
}
if (!$objExercise) { if (!$objExercise) {
//Redirect to the exercise overview //Redirect to the exercise overview
@ -42,7 +56,7 @@ if ($objExercise->expired_time != 0 && !empty($clock_expired_time)) {
if ($time_control) { if ($time_control) {
// Get time left for exipiring time // Get time left for exipiring time
$time_left = api_strtotime($clock_expired_time,'UTC') - 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/stylesheet/jquery.epiclock.css');
$htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css'); $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css');
$htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.dateformat.min.js'); $htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.dateformat.min.js');
@ -69,7 +83,7 @@ $interbreadcrumb[] = array("url" => "exercice.php?".api_get_cidreq(), "name" =>
if ($origin != 'learnpath') { if ($origin != 'learnpath') {
//so we are not in learnpath tool //so we are not in learnpath tool
Display::display_header($nameTools,get_lang('Exercise')); Display::display_header($nameTools, get_lang('Exercise'));
} else { } else {
Display::display_reduced_header(); Display::display_reduced_header();
} }

Loading…
Cancel
Save