Browse Source

see #4926 Forum: breadcrumbs does not match tool name

Laurent Opprecht 12 years ago
parent
commit
60b64cf62a
3 changed files with 4 additions and 4 deletions
  1. 2 2
      main/forum/index.php
  2. 1 1
      main/forum/viewforumcategory.php
  3. 1 1
      main/forum/viewthread.php

+ 2 - 2
main/forum/index.php

@@ -90,11 +90,11 @@ $actions = isset($_GET['action']) ? $_GET['action'] : '';
 if ($actions == 'add') {
     switch ($_GET['content']) {
         case 'forum':
-            $interbreadcrumb[] = array('url' => 'index.php?gradebook='.$gradebook.'&search='.$search_forum, 'name' => get_lang('ForumCategories'));
+            $interbreadcrumb[] = array('url' => 'index.php?gradebook='.$gradebook.'&search='.$search_forum, 'name' => get_lang('Forum'));
             $interbreadcrumb[] = array('url' =>'#', 'name' => get_lang('AddForum'));
             break;
         case 'forumcategory':
-            $interbreadcrumb[] = array('url' =>'index.php?gradebook='.$gradebook.'&search='.$search_forum, 'name' => get_lang('ForumCategories'));
+            $interbreadcrumb[] = array('url' =>'index.php?gradebook='.$gradebook.'&search='.$search_forum, 'name' => get_lang('Forum'));
             $interbreadcrumb[] = array('url' =>'#', 'name' => get_lang('AddForumCategory'));
             break;
         default:            

+ 1 - 1
main/forum/viewforumcategory.php

@@ -75,7 +75,7 @@ if (!empty($gradebook) && $gradebook == 'view') {
 }
 
 $current_forum_category = get_forum_categories($_GET['forumcategory']);
-$interbreadcrumb[] = array('url' => 'index.php?gradebook='.$gradebook.'&search='.Security::remove_XSS(urlencode(isset($_GET['search'])?$_GET['search']:'')),'name' => get_lang('ForumCategories'));
+$interbreadcrumb[] = array('url' => 'index.php?gradebook='.$gradebook.'&search='.Security::remove_XSS(urlencode(isset($_GET['search'])?$_GET['search']:'')),'name' => get_lang('Forum'));
 
 
 if (!empty($_GET['action']) && !empty($_GET['content'])) {

+ 1 - 1
main/forum/viewthread.php

@@ -22,7 +22,7 @@ api_protect_course_script(true);
 require_once 'forumconfig.inc.php';
 require_once 'forumfunction.inc.php';
 
-$nameTools = get_lang('ForumCategories');
+$nameTools = get_lang('Forum');
 
 // Are we in a lp ?
 $origin = '';