|
@@ -504,7 +504,6 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools) {
|
|
|
$navigation_item['title'] = get_lang('Gallery');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
$navigation_item['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);
|
|
|
$navigation_item['title'] = Security::remove_XSS($navigation_item['title']);
|
|
|
$navigation[] = $navigation_item;
|
|
@@ -539,7 +538,6 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools) {
|
|
|
|
|
|
$final_navigation = array();
|
|
|
$counter = 0;
|
|
|
-
|
|
|
foreach ($navigation as $index => $navigation_info) {
|
|
|
if (!empty($navigation_info['title'])) {
|
|
|
if ($navigation_info['url'] == '#') {
|
|
@@ -560,17 +558,13 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools) {
|
|
|
$view_as_student_link = api_display_tool_view_option();
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (!empty($final_navigation)) {
|
|
|
$lis = '';
|
|
|
$i = 0;
|
|
|
-
|
|
|
-
|
|
|
$final_navigation_count = count($final_navigation);
|
|
|
|
|
|
if (!empty($final_navigation)) {
|
|
|
|
|
|
-
|
|
|
if (!empty($home_link)) {
|
|
|
$lis.= Display::tag('li', $home_link);
|
|
|
}
|