[svn r21822] minor-hide option of add glossary terms in document - (partial FS#4337)

skala
Isaac Flores 16 years ago
parent e52d0451c1
commit f0dad7a10b
  1. 3
      main/document/headerpage.php
  2. 4
      main/document/showinframes.php

@ -27,11 +27,10 @@ $path_info= pathinfo($file_url_sys);
Display::display_header(null,"Doc");
echo "<div align=\"center\">";
if ($path_info['extension']=='html') {
if ($path_info['extension']=='html' && false) { //should be added in the platform admin
$file_url_web='document_with_glossary_terms.php?file='.urlencode($header_file);
} else {
$file_url_web=api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$header_file."?".api_get_cidreq();
}
echo "<a href='".$file_url_web."' target='blank'>".get_lang('_cut_paste_link')."</a></div>";
?>

@ -1,4 +1,4 @@
<?php // $Id: showinframes.php 21820 2009-07-06 17:25:46Z iflorespaz $
<?php // $Id: showinframes.php 21822 2009-07-06 18:07:52Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -94,7 +94,7 @@ $file_root=$_course['path'].'/document'.str_replace('%2F', '/',$file);
$file_url_sys=api_get_path(SYS_COURSE_PATH).$file_root;
$file_url_web=api_get_path(WEB_COURSE_PATH).$file_root;
$path_info= pathinfo($file_url_sys);
if ($path_info['extension']=='html') {
if ($path_info['extension']=='html' && false) {//should be added in the platform admin
$file_url_web='document_with_glossary_terms.php?file='.urlencode($file);
}

Loading…
Cancel
Save