diff --git a/main/document/document.php b/main/document/document.php index 8d895bae8b..7546bfce7b 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -361,7 +361,11 @@ $image_files_only = ''; if ($is_certificate_mode) { $interbreadcrumb[]= array('url' => '../gradebook/index.php', 'name' => get_lang('Gradebook')); } else { - $interbreadcrumb[]= array('url' => '', 'name' => get_lang('Documents')); + if ( (isset($_GET['id']) && $_GET['id'] != 0) || isset($_GET['curdirpath'])) { + $interbreadcrumb[]= array('url' => 'document.php', 'name' => get_lang('Documents')); + } else { + $interbreadcrumb[]= array('url' => '#', 'name' => get_lang('Documents')); + } } // Interbreadcrumb for the current directory root path @@ -390,6 +394,9 @@ for ($i = 0; $i < $array_len; $i++) { if ($is_certificate_mode) { $interbreadcrumb[] = array('url' => $url_dir.'&selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => $url_to_who); } else { + if( $i == $array_len - 1 && !isset($_GET['createdir']) ) { + $url_dir = '#'; + } $interbreadcrumb[] = array('url' => $url_dir, 'name' => $url_to_who); } //does not repeat the name group in the url @@ -400,7 +407,7 @@ for ($i = 0; $i < $array_len; $i++) { } if (isset($_GET['createdir'])) { - $interbreadcrumb[] = array('url' => '', 'name' => get_lang('CreateDir')); + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('CreateDir')); } Display::display_header('','Doc'); diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index 9386b42056..0ad53d3003 100755 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -421,7 +421,7 @@ if (!empty ($gradebook) && $gradebook == 'view') { } $interbreadcrumb[] = array ("url" => "exercice.php?gradebook=$gradebook", "name" => get_lang('Exercices')); -$interbreadcrumb[] = array ("url" => api_get_self()."?gradebook=$gradebook","name" => $objExercise->selectTitle()); +$interbreadcrumb[] = array ("url" => "#","name" => $objExercise->selectTitle()); if ($origin != 'learnpath') { //so we are not in learnpath tool //$htmlHeadXtra[] = $objExercise->show_lp_javascript(); diff --git a/main/exercice/qti2.php b/main/exercice/qti2.php index 3a49d7e4eb..e713da6cd0 100755 --- a/main/exercice/qti2.php +++ b/main/exercice/qti2.php @@ -28,7 +28,7 @@ if (!api_is_allowed_to_edit(null, true)) { } // the breadcrumbs -$interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices')); +$interbreadcrumb[]= array ("url"=>"exercice.php", "name"=> get_lang('Exercices')); $is_allowedToEdit = api_is_allowed_to_edit(null, true); /** @@ -91,7 +91,7 @@ if ((api_is_allowed_to_edit(null, true))) { } // display header -Display::display_header($name_tools, get_lang('Exercise')); +Display::display_header(get_lang('ImportQtiQuiz'), 'Exercises'); // display qti form ch_qti2_display_form(); diff --git a/main/exercice/upload_exercise.php b/main/exercice/upload_exercise.php index 067a83f370..166923dcf2 100755 --- a/main/exercice/upload_exercise.php +++ b/main/exercice/upload_exercise.php @@ -41,10 +41,12 @@ $htmlHeadXtra[] = "