Commenting code that uses the headerpage.php deprecated file

skala
Julio Montoya 15 years ago
parent ba8bb68760
commit 3c44929ae1
  1. 6
      main/document/headerpage.php
  2. 6
      main/inc/lib/main_api.lib.php

@ -6,6 +6,7 @@
*/
// Name of the language file that needs to be included
exit;
$language_file = 'document';
require_once '../inc/global.inc.php';
@ -25,10 +26,13 @@ if (isset($_SESSION['_gid']) && $_SESSION['_gid'] != '') {
$interbreadcrumb[] = array('url' => './document.php?curdirpath='.dirname($header_file).$req_gid, 'name' => get_lang('Documents'));
$interbreadcrumb[] = array('url' => 'showinframes.php?file='.$header_file, 'name' => $header_file);
$file_url_sys = api_get_path(SYS_COURSE_PATH).'document'.$header_file;
$path_info = pathinfo($file_url_sys);
$this_section = SECTION_COURSES;
Display::display_header(null, 'Doc');
echo '<div align="center">';
$file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$header_file.'?'.api_get_cidreq();
echo "<h1>";
echo '<a href="'.$file_url_web.'" target="blank">'.get_lang('_cut_paste_link').'</a></div>';
echo "</h1>";

@ -1933,7 +1933,7 @@ function api_display_tool_title($title_element) {
*/
function api_display_tool_view_option() {
if (api_get_setting('student_view_enabled') != 'true') {
if (api_get_setting('student_view_enabled') != 'true') {
return '';
}
@ -1947,13 +1947,13 @@ function api_display_tool_view_option() {
return '';
}
// Uncomment to remove student view link from document view page
/*// Uncomment to remove student view link from document view page
if (strpos($_SERVER['REQUEST_URI'], 'document/headerpage.php') !== false) {
$sourceurl = str_replace('document/headerpage.php', 'document/showinframes.php', $_SERVER['REQUEST_URI']);
//showinframes doesn't handle student view anyway...
//return '';
$is_framed = true;
}
}*/
// Uncomment to remove student view link from document view page
if (strpos($_SERVER['REQUEST_URI'], 'newscorm/lp_header.php') !== false) {

Loading…
Cancel
Save