Merge with 3f7beff3b0a5f1abbb62cae4c1f00143193b4bb4

skala
Ivan Tcholakov 16 years ago
commit 734268e02f
  1. 12
      main/newscorm/learnpath.class.php
  2. 3
      main/newscorm/scorm_api.php

@ -3069,10 +3069,14 @@ class learnpath {
if (!is_file(realpath($sys_course_path . '/scorm/' . $lp_path . '/' . $decoded))) {
require_once ('resourcelinker.inc.php');
$file = rl_get_resource_link_for_learnpath(api_get_course_id(), $this->get_id(), $item_id);
$tmp_array = explode("/", $file);
$document_name = $tmp_array[count($tmp_array) - 1];
if (strpos($document_name, '_DELETED_')) {
$file = 'blank.php?error=document_deleted';
if (empty($file)) {
$file = 'blank.php?error=document_not_found';
} else {
$tmp_array = explode("/", $file);
$document_name = $tmp_array[count($tmp_array) - 1];
if (strpos($document_name, '_DELETED_')) {
$file = 'blank.php?error=document_deleted';
}
}
} else {

@ -1420,7 +1420,8 @@ function xajax_save_item_scorm(lms_lp_id, lms_user_id, lms_view_id, lms_item_id,
//'cmi.core.lesson_status','cmi.completion_status','cmi.core.session_time','cmi.score.scaled','cmi.success_status',
//'cmi.suspend_data','cmi.core.exit','interactions');
params='';
var is_interactions='false';
var params='';
params += 'lid='+lms_lp_id+'&uid='+lms_user_id+'&vid='+lms_view_id+'&iid='+lms_item_id;
for (k=0;k<info_get_lms.length;k++) {

Loading…
Cancel
Save