瀏覽代碼

[svn r12377] minor - fix little bugs when viewing documents

Julian Prud'homme 18 年之前
父節點
當前提交
286e5f4ab0
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. 3 2
      main/document/headerpage.php
  2. 2 2
      main/document/showinframes.php

+ 3 - 2
main/document/headerpage.php

@@ -27,8 +27,9 @@ $language_file = 'document';
 	}
 
 	$interbreadcrumb[]= array ("url"=>"./document.php?curdirpath=".dirname($_GET['file']).$req_gid, "name"=> $langDocuments);
-
-	Display::display_header($nameTools,"Doc");
+	$interbreadcrumb[]= array ("url"=>"showinframes.php?file=".$_GET['file'], "name"=> $_GET['file']);
+	
+	Display::display_header(null,"Doc");
 
 	echo "<div align=\"center\">";
 	echo "<a href='".api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$_GET['file']."?".api_get_cidreq()."' target='blank'>".$lang_cut_paste_link."</a></div>";

+ 2 - 2
main/document/showinframes.php

@@ -1,4 +1,4 @@
-<?php // $Id: showinframes.php 9246 2006-09-25 13:24:53Z bmol $ 
+<?php // $Id: showinframes.php 12377 2007-05-11 08:56:44Z elixir_julian $ 
 /*
 ============================================================================== 
 	Dokeos - elearning and course management software
@@ -75,7 +75,7 @@ header('Pragma: no-cache');
 $browser_display_title = "Dokeos Documents - " . $_GET['cidReq'] . " - " . $_GET['file'];
 
 //only admins get to see the "no frames" link in pageheader.php, so students get a header that's not so high
-$frameheight = 120;
+$frameheight = 130;
 if($is_courseAdmin)
 {
 	$frameheight = 150;