diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index af99488da7..30810a9e26 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -149,11 +149,11 @@ if (!isset($src)) { if ($prereq_check === true) { $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 = pathinfo($file_info['path']); 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 } else { diff --git a/main/newscorm/resourcelinker.inc.php b/main/newscorm/resourcelinker.inc.php index 5dddcc17f1..e6520a268a 100644 --- a/main/newscorm/resourcelinker.inc.php +++ b/main/newscorm/resourcelinker.inc.php @@ -1707,7 +1707,7 @@ function rl_get_resource_link_for_learnpath($course_id, $learnpath_id, $id_in_pa $result = Database::query($sql); $myrow = Database::fetch_array($result); $docurl = str_replace('%2F', '/', urlencode($myrow['path'])); - $link .= $main_course_path.'document'.$docurl.'?'.api_get_cidreq(); + $link .= $main_course_path.'document'.$docurl.'?cidReq'.$course_code.'&id_session='.$session_id; $openmethod = 2; $officedoc = false; Session::write('openmethod',$openmethod);