only load wav files by nanogong when nanogong is enabled

skala
Juan Carlos Raña 14 years ago
parent 140c937805
commit 70dbbf2681
  1. 2
      main/document/showinframes.php

@ -188,7 +188,7 @@ $file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$head
echo '<a href="'.$file_url_web.'" target="_blank">'.get_lang('_cut_paste_link').'</a></div>';
$pathinfo =pathinfo($header_file);
if ($pathinfo['extension']=='wav'){
if ($pathinfo['extension']=='wav' && api_get_setting('enable_nanogong') == 'true'){
echo '<div align="center">';
echo '<br/>';
echo '<applet id="applet" archive="../inc/lib/nanogong/nanogong.jar" code="gong.NanoGong" width="160" height="40">';

Loading…
Cancel
Save