[svn r12252] there was a bug when there were parameters in the item path.

skala
Eric Marguin 19 years ago
parent c4712d8293
commit da4c717ab8
  1. 7
      main/newscorm/learnpath.class.php

@ -2386,6 +2386,12 @@ class learnpath {
$lp_item_type = $row['litype'];
$lp_item_path = $row['lipath'];
$lp_item_params = $row['liparams'];
if(empty($lp_item_params))
{
list($lp_item_path,$lp_item_params) = explode('?',$lp_item_path);
}
$lp_item_params = '?'.$lp_item_params;
//add ? if none - left commented to give freedom to scorm implementation
//if(substr($lp_item_params,0,1)!='?'){
// $lp_item_params = '?'.$lp_item_params;
@ -2440,6 +2446,7 @@ class learnpath {
if(!is_file($sys_course_path.'/scorm/'.$lp_path.'/'.$lp_item_path))
{//if file not found
$decoded = html_entity_decode($lp_item_path);
list($decoded) = explode('?',$decoded);
if(!is_file($sys_course_path.'/scorm/'.$lp_path.'/'.$decoded))
{
require_once('resourcelinker.inc.php');

Loading…
Cancel
Save