Commit 16aa5aee authored by h3rj4n's avatar h3rj4n Committed by Chris Johnson

Issue #1815682 by Nicolas Bouteille and h3rj4n: Display blocks on localized...

Issue #1815682 by Nicolas Bouteille and h3rj4n: Display blocks on localized taxonomy term page doesn't work
parent e24098c7
......@@ -105,7 +105,8 @@ function context_ctools_render_alter($info, $page, $data) {
function context_entity_prepare_view($prepare, $entity_type) {
if ($entity_type === 'taxonomy_term' && count($prepare) === 1) {
$term = reset($prepare);
if ($term === menu_get_object('taxonomy_term', 2) && $plugin = context_get_plugin('condition', 'taxonomy_term')) {
$menu = menu_get_object('taxonomy_term', 2);
if ($term->tid == $menu->tid && $plugin = context_get_plugin('condition', 'taxonomy_term')) {
$plugin->execute($term, 'view');
}
}
......
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