This page uses frames, but your browser doesn't support them.
@@ -130,7 +111,7 @@ if ($origin!='learnpath') {
} else {
?>
diff --git a/main/exercice/testheaderpage.php b/main/exercice/testheaderpage.php
index 1a6f9ab0cd..d6c0b617f0 100644
--- a/main/exercice/testheaderpage.php
+++ b/main/exercice/testheaderpage.php
@@ -1,55 +1,34 @@
- '../gradebook/'.$_SESSION['gradebook_dest'],
- 'name' => get_lang('Gradebook')
- );
- }
- $interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices'));
- Display::display_header($nameTools,"Exercise");
- echo "";
-?>
+require '../inc/global.inc.php';
+
+require_once(api_get_path(SYS_CODE_PATH).'exercice/hotpotatoes.lib.php');
+$documentPath= api_get_path(SYS_COURSE_PATH).$_course['path']."/document";
+$my_file = Security::remove_XSS($_GET['file']);
+$title = GetQuizName($my_file,$documentPath);
+if ($title =='') {
+ $title = GetFileName($my_file);
+}
+$nameTools = $title;
+$noPHP_SELF=true;
+if (isset($_SESSION['gradebook'])){
+ $gradebook= $_SESSION['gradebook'];
+}
+
+if (!empty($gradebook) && $gradebook=='view') {
+ $interbreadcrumb[]= array (
+ 'url' => '../gradebook/'.$_SESSION['gradebook_dest'],
+ 'name' => get_lang('Gradebook')
+ );
+}
+$interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices'));
+Display::display_header($nameTools,"Exercise");
+echo "";
\ No newline at end of file