diff options
-rw-r--r-- | modules/simpletest/tests/menu.test | 3 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.pages.inc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index 5b4847f75..b12ccb116 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -1370,8 +1370,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { $tree += array( $link['link_path'] => $link['link_title'], ); - // @todo Normally, you'd expect $term->name as page title here. - $this->assertBreadcrumb($link['link_path'], $trail, $link['link_title'], $tree); + $this->assertBreadcrumb($link['link_path'], $trail, $term->name, $tree); $this->assertRaw(check_plain($parent->title), 'Tagged node found.'); // Additionally make sure that this link appears only once; i.e., the diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc index 0cca252d7..2a8d961a3 100644 --- a/modules/taxonomy/taxonomy.pages.inc +++ b/modules/taxonomy/taxonomy.pages.inc @@ -14,6 +14,9 @@ * The page content. */ function taxonomy_term_page($term) { + // Assign the term name as the page title. + drupal_set_title($term->name); + // Build breadcrumb based on the hierarchy of the term. $current = (object) array( 'tid' => $term->tid, |