Fixing fatal error due the audio record include code see #3658

skala
Julio Montoya 14 years ago
parent 4824461a14
commit a28e48a79e
  1. 13
      main/newscorm/audiorecorder.inc.php
  2. 19
      main/newscorm/display_audiorecorder.php
  3. 2
      main/newscorm/learnpath.class.php
  4. 23
      main/newscorm/lp_edit_item_prereq.php

@ -9,9 +9,6 @@
* @author Arnaud Ligot <arnaud@cblue.be>
* @package chamilo.learnpath
*/
/**
* Code
*/
global $_configuration;
$web_path = api_get_path(WEB_CODE_PATH);
$getid3_path = api_get_path(LIBRARY_PATH);
@ -66,19 +63,15 @@ if (!empty($path_to_lzx)) {
"<param name=\"menu\" value=\"false\"></object>", $path_to_lzx, $path_to_lzx);
if ($audio_recorder_studentview == 'false') {
echo '<script type="text/javascript">
function show_audiorecorder()
{
function show_audiorecorder() {
document.getElementById("audiorecorder_frame").innerHTML = "'.addslashes($recorder_content).'";
document.getElementById("show_audiorecorder_div").style.display="none";
}
</script>
';
</script>';
// Commented the audio for the version stable.
//echo '<div id="show_audiorecorder_div"><a style="cursor:pointer" onclick="show_audiorecorder()">'.get_lang('ShowAudioRecorder').'</a></div>';
//echo '<div id="audiorecorder_frame"></div>';
} else {
echo $recorder_content;
}
}
}

@ -33,13 +33,12 @@ require_once '../inc/reduced_header.inc.php';
echo '<body dir="'.api_get_text_direction().'">';
echo '<div id="audiorecorder"> ';
$audio_recorder_studentview = 'true';
$audio_recorder_item_id = $_SESSION['oLP']->current;
if (api_get_setting('service_visio', 'active') == 'true') {
include 'audiorecorder.inc.php';
}
echo '</div>';
// end of audiorecorder include
echo '</body></html>';
echo '<div id="audiorecorder"> ';
$audio_recorder_studentview = 'true';
$audio_recorder_item_id = $_SESSION['oLP']->current;
if (api_get_setting('service_visio', 'active') == 'true') {
require_once 'audiorecorder.inc.php';
}
echo '</div>';
// end of audiorecorder include
echo '</body></html>';

@ -7181,7 +7181,7 @@ class learnpath {
$audio_recorder_studentview = 'false';
$audio_recorder_item_id = $item_id;
if (api_get_setting('service_visio', 'active') == 'true') {
include 'audiorecorder.inc.php';
require_once 'audiorecorder.inc.php';
}
$return .= ob_get_contents();
ob_end_clean();

@ -9,10 +9,6 @@
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool
* @package chamilo.learnpath
*/
/**
* Code
*/
/* INIT SECTION */
$this_section = SECTION_COURSES;
@ -20,9 +16,6 @@ api_protect_course_script();
/* Libraries */
// The main_api.lib.php, database.lib.php and display.lib.php
// libraries are included by default.
include 'learnpath_functions.inc.php';
//include '../resourcelinker/resourcelinker.inc.php';
include 'resourcelinker.inc.php';
@ -41,19 +34,6 @@ $tbl_lp_view = Database::get_course_table(TABLE_LP_VIEW);
$isStudentView = (int) $_REQUEST['isStudentView'];
$learnpath_id = (int) $_REQUEST['lp_id'];
$submit = $_POST['submit_button'];
/*
$chapter_id = $_GET['chapter_id'];
$title = $_POST['title'];
$description = $_POST['description'];
$Submititem = $_POST['Submititem'];
$action = $_REQUEST['action'];
$id = (int) $_REQUEST['id'];
$type = $_REQUEST['type'];
$direction = $_REQUEST['direction'];
$moduleid = $_REQUEST['moduleid'];
$prereq = $_REQUEST['prereq'];
$type = $_REQUEST['type'];
*/
/* MAIN CODE */
@ -158,5 +138,4 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
echo '</table>';
/* FOOTER */
Display::display_footer();
Display::display_footer();
Loading…
Cancel
Save