|
|
@ -149,11 +149,11 @@ if (!isset($src)) { |
|
|
|
if ($prereq_check === true) { |
|
|
|
if ($prereq_check === true) { |
|
|
|
$src = $_SESSION['oLP']->get_link('http', $lp_item_id, $get_toc_list); |
|
|
|
$src = $_SESSION['oLP']->get_link('http', $lp_item_id, $get_toc_list); |
|
|
|
|
|
|
|
|
|
|
|
//Prevents FF 3.6 + Adobe Reader 9 bug see BT#794 when calling a pdf file in a LP. |
|
|
|
// Prevents FF 3.6 + Adobe Reader 9 bug see BT#794 when calling a pdf file in a LP. |
|
|
|
$file_info = parse_url($src); |
|
|
|
$file_info = parse_url($src); |
|
|
|
$file_info = pathinfo($file_info['path']); |
|
|
|
$file_info = pathinfo($file_info['path']); |
|
|
|
if (api_strtolower(substr($file_info['extension'], 0, 3) == 'pdf')) { |
|
|
|
if (api_strtolower(substr($file_info['extension'], 0, 3) == 'pdf')) { |
|
|
|
$src = api_get_path(WEB_CODE_PATH).'newscorm/lp_view_item.php?lp_item_id='.$lp_item_id; |
|
|
|
$src = api_get_path(WEB_CODE_PATH).'newscorm/lp_view_item.php?lp_item_id='.$lp_item_id.'&'.api_get_cidreq(); |
|
|
|
} |
|
|
|
} |
|
|
|
$_SESSION['oLP']->start_current_item(); // starts time counter manually if asset |
|
|
|
$_SESSION['oLP']->start_current_item(); // starts time counter manually if asset |
|
|
|
} else { |
|
|
|
} else { |
|
|
|