Commit 82565266 authored by Dries's avatar Dries
Browse files

- Patch #18927 by Periastron: as one navigates down through the forum...

- 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.
parent 97ae6568
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment