diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-03-16 21:07:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-03-16 21:07:59 +0000 |
commit | 82565266b8de0bfe2dc3b5c9f1b23fac4fa3c788 (patch) | |
tree | 3a74de1b5e51fd39a321fd6db770d95d5e05e9ae | |
parent | 97ae6568e672cd4a914355e0c41b3ccce9c73b89 (diff) | |
download | brdo-82565266b8de0bfe2dc3b5c9f1b23fac4fa3c788.tar.gz brdo-82565266b8de0bfe2dc3b5c9f1b23fac4fa3c788.tar.bz2 |
- Patch #18927 by Periastron: as one navigates down through the forum taxonomy, the title used to change to the current term, but now it always just displays the vocabulary name. I have attached a patch that restores the previous behaviour. It looks like the regression may have been introduced in some changes to theme_forum_display.
-rw-r--r-- | modules/forum.module | 5 | ||||
-rw-r--r-- | modules/forum/forum.module | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/modules/forum.module b/modules/forum.module index 96d18a785..9414ed6d6 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -740,7 +740,7 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p // forum list, topics list, topic browser and 'add new topic' link $vocabulary = taxonomy_get_vocabulary(variable_get('forum_nav_vocabulary', '')); - drupal_set_title($title = $vocabulary->name); + $title = $vocabulary->name; // Breadcrumb navigation: $breadcrumb = array(); @@ -759,6 +759,9 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p } } } + + drupal_set_title($title); + $breadcrumb[] = array('path' => $_GET['q']); menu_set_location($breadcrumb); diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 96d18a785..9414ed6d6 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -740,7 +740,7 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p // forum list, topics list, topic browser and 'add new topic' link $vocabulary = taxonomy_get_vocabulary(variable_get('forum_nav_vocabulary', '')); - drupal_set_title($title = $vocabulary->name); + $title = $vocabulary->name; // Breadcrumb navigation: $breadcrumb = array(); @@ -759,6 +759,9 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p } } } + + drupal_set_title($title); + $breadcrumb[] = array('path' => $_GET['q']); menu_set_location($breadcrumb); |