diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-03 06:53:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-03 06:53:19 +0000 |
commit | 29e02b45c668d6ba31496f72fd87e4da9663bb23 (patch) | |
tree | 78f5522aa8187312be09c42c5734cbce5117ca83 | |
parent | 7edad0db9ede80180f2244ab837b685bb9c07d5e (diff) | |
download | brdo-29e02b45c668d6ba31496f72fd87e4da9663bb23.tar.gz brdo-29e02b45c668d6ba31496f72fd87e4da9663bb23.tar.bz2 |
- Patch #634098 by asimmonds: fixed broken pager on /taxonomy/term/* pages.
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 68bc50687..d7bc3252a 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -156,6 +156,7 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr } $query = db_select('taxonomy_index', 't'); $query->addTag('node_access'); + $query->condition('tid', $tid); if ($pager) { $count_query = clone $query; $count_query->addExpression('COUNT(t.nid)'); @@ -171,7 +172,6 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr $query->range(0, $limit); } } - $query->condition('tid', $tid); $query->addField('t', 'nid'); $query->addField('t', 'tid'); foreach ($order as $field => $direction) { |