skala
Julio Montoya 13 years ago
commit bb6fa2e311
  1. 2
      main/exercice/exercise_result.php
  2. 1
      main/newscorm/lp_ajax_initialize.php
  3. 1
      main/newscorm/lp_ajax_save_item.php
  4. 2
      main/newscorm/lp_controller.php
  5. 2
      main/newscorm/lp_view.php
  6. 1
      main/newscorm/scorm_api.php

@ -163,7 +163,7 @@ if ($origin != 'learnpath') {
$lp_mode = $_SESSION['lp_mode']; $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; $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;
$href = ($lp_mode == 'fullscreen')?' window.opener.location.href="'.$url.'" ':' top.location.href="'.$url.'"'; $href = ($lp_mode == 'fullscreen')?' window.opener.location.href="'.$url.'" ':' top.location.href="'.$url.'"';
if (api_is_allowed_to_session_edit()) { if (api_is_allowed_to_session_edit()) {
Session::erase('objExercise'); Session::erase('objExercise');
Session::erase('exe_id'); Session::erase('exe_id');

@ -36,7 +36,6 @@ require_once 'aiccItem.class.php';
* @param integer New item ID * @param integer New item ID
*/ */
function initialize_item($lp_id, $user_id, $view_id, $next_item) { function initialize_item($lp_id, $user_id, $view_id, $next_item) {
$debug = 10;
$return = ''; $return = '';
if ($debug > 0) { error_log('In initialize_item('.$lp_id.','.$user_id.','.$view_id.','.$next_item.')', 0); } if ($debug > 0) { error_log('In initialize_item('.$lp_id.','.$user_id.','.$view_id.','.$next_item.')', 0); }
/*$item_id may be one of: /*$item_id may be one of:

@ -46,7 +46,6 @@ require_once 'aiccItem.class.php';
*/ */
function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, $min = -1, $status = '', $time = 0, $suspend = '', $location = '', $interactions = array(), $core_exit = 'none') { function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, $min = -1, $status = '', $time = 0, $suspend = '', $location = '', $interactions = array(), $core_exit = 'none') {
$return = null; $return = null;
$debug = 10;
if ($debug > 0) { if ($debug > 0) {
error_log('lp_ajax_save_item.php : save_item() params: '); error_log('lp_ajax_save_item.php : save_item() params: ');

@ -218,7 +218,7 @@ if (isset($_GET['isStudentView']) && $_GET['isStudentView'] == 'true') {
} }
} else { } else {
if ($is_allowed_to_edit) { if ($is_allowed_to_edit) {
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'view') { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'view' && !isset($_REQUEST['exeId'])) {
$_REQUEST['action'] = 'build'; $_REQUEST['action'] = 'build';
} }
} }

@ -248,11 +248,11 @@ if ($type_quiz && !empty($_REQUEST['exeId']) && isset($lp_id) && isset($_GET['lp
Database::query($update_query); Database::query($update_query);
} }
} }
if (intval($_GET['fb_type']) > 0) { if (intval($_GET['fb_type']) > 0) {
$src = 'blank.php?msg=exerciseFinished'; $src = 'blank.php?msg=exerciseFinished';
} else { } else {
$src = api_get_path(WEB_CODE_PATH).'exercice/result.php?origin=learnpath&id='.$safe_exe_id; $src = api_get_path(WEB_CODE_PATH).'exercice/result.php?origin=learnpath&id='.$safe_exe_id;
if ($debug) error_log('Calling URL: '.$src); if ($debug) error_log('Calling URL: '.$src);
} }
$autostart = 'false'; $autostart = 'false';

@ -50,7 +50,6 @@ header('Content-type: text/javascript');
*/ */
?>var scorm_logs=<?php echo ((empty($oLP->scorm_debug) or (!api_is_course_admin() && !api_is_platform_admin()) )?'0':'3');?>; //debug log level for SCORM. 0 = none, 1=light, 2=a lot, 3=all - displays logs in log frame ?>var scorm_logs=<?php echo ((empty($oLP->scorm_debug) or (!api_is_course_admin() && !api_is_platform_admin()) )?'0':'3');?>; //debug log level for SCORM. 0 = none, 1=light, 2=a lot, 3=all - displays logs in log frame
scorm_logs = 3;
var lms_logs=0; //debug log level for LMS actions. 0=none, 1=light, 2=a lot, 3=all var lms_logs=0; //debug log level for LMS actions. 0=none, 1=light, 2=a lot, 3=all
//logit_lms('scormfunctions.php included',0); //logit_lms('scormfunctions.php included',0);

Loading…
Cancel
Save