summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Weber2012-02-03 20:27:36 (GMT)
committer Florian Weber2012-02-03 20:27:36 (GMT)
commit07f6d618f2a77ca9fcaf26ea8b54457678f23eb8 (patch)
tree83f1c386d31f82d1ad5c8df5d12d3a3ce26433c0
parent48d157f376d3bcc0e8d0bcb912bb75ba1457050d (diff)
Issue #1392024 by webflo | calculus: Fixed pager on taxonomy term pages.
-rw-r--r--i18n_select/i18n_select.module8
1 files changed, 8 insertions, 0 deletions
diff --git a/i18n_select/i18n_select.module b/i18n_select/i18n_select.module
index bbdb2ff..66d187f 100644
--- a/i18n_select/i18n_select.module
+++ b/i18n_select/i18n_select.module
@@ -149,6 +149,14 @@ function i18n_select_query_node_access_alter(QueryAlterableInterface $query) {
// Mark query as altered
$query->addTag('i18n_select');
}
+
+ // Rewrite pager for taxonomy term pages.
+ if ($mode && ($table_alias = i18n_select_check_table($query, 'taxonomy_index', 'tid')) && i18n_select_check_query($query, $table_alias)) {
+ $query->join('node', 'n', 't.nid = n.nid');
+ $query->condition('n.language', i18n_select_langcodes());
+ // Mark query as altered
+ $query->addTag('i18n_select');
+ }
}
/**