|
@@ -12,7 +12,7 @@ discard block |
|
|
block discarded – undo |
|
12
|
12
|
|
|
13
|
13
|
require_once '../inc/global.inc.php'; |
|
14
|
14
|
api_block_anonymous_users(); |
|
15
|
|
-$this_section=SECTION_COURSES; |
|
|
15
|
+$this_section = SECTION_COURSES; |
|
16
|
16
|
|
|
17
|
17
|
$gradebook = Security::remove_XSS($_GET['gradebook']); |
|
18
|
18
|
|
|
@@ -24,7 +24,7 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
$doExerciseUrl = null; |
|
25
|
25
|
|
|
26
|
26
|
if (isset($_GET['doexercise'])) { |
|
27
|
|
- $doExerciseUrl = api_get_path(WEB_CODE_PATH) . 'exercice/overview.php?' . http_build_query([ |
|
|
27
|
+ $doExerciseUrl = api_get_path(WEB_CODE_PATH).'exercice/overview.php?'.http_build_query([ |
|
28
|
28
|
'session_id' => $session_id, |
|
29
|
29
|
'cidReq' => $cidReq, |
|
30
|
30
|
'gradebook' => $gradebook, |
|
@@ -60,11 +60,11 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
// If the exercise was added once redirect to the LP |
|
61
|
61
|
$firstLp = current($exercise->lpList); |
|
62
|
62
|
if (isset($firstLp['lp_id'])) { |
|
63
|
|
- $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq() . '&lp_id=' . $firstLp['lp_id'] . '&action=view&isStudentView=true'; |
|
|
63
|
+ $url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&lp_id='.$firstLp['lp_id'].'&action=view&isStudentView=true'; |
|
64
|
64
|
} |
|
65
|
65
|
} else { |
|
66
|
66
|
// If the exercise was added multiple times show the LP list |
|
67
|
|
- $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq().'&action=list'; |
|
|
67
|
+ $url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&action=list'; |
|
68
|
68
|
} |
|
69
|
69
|
} |
|
70
|
70
|
} |
Please login to merge, or discard this patch.