浏览代码

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

Isaac Flores 15 年之前
父节点
当前提交
f0dad7a10b
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. 1 2
      main/document/headerpage.php
  2. 2 2
      main/document/showinframes.php

+ 1 - 2
main/document/headerpage.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>";
 ?>

+ 2 - 2
main/document/showinframes.php

@@ -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);
 }