Turning off debug in LPs

skala
Julio Montoya 12 years ago
parent 58855d7e4f
commit 308ef01050
  1. 1
      main/newscorm/lp_ajax_initialize.php
  2. 1
      main/newscorm/lp_ajax_save_item.php
  3. 2
      main/newscorm/lp_view.php
  4. 1
      main/newscorm/scorm_api.php

@ -36,7 +36,6 @@ require_once 'aiccItem.class.php';
* @param integer New item ID
*/
function initialize_item($lp_id, $user_id, $view_id, $next_item) {
$debug = 10;
$return = '';
if ($debug > 0) { error_log('In initialize_item('.$lp_id.','.$user_id.','.$view_id.','.$next_item.')', 0); }
/*$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') {
$return = null;
$debug = 10;
if ($debug > 0) {
error_log('lp_ajax_save_item.php : save_item() params: ');

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

Loading…
Cancel
Save