summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Davis2012-11-04 16:33:31 (GMT)
committer Ben Davis2012-11-04 16:33:31 (GMT)
commit5b88f4ee011f386635663ab9beb316d4f1889812 (patch)
tree94af7dcbe83120aca1ab48ba8ac188c50024ae71
parent44f35e32303a78c710b4a5684d18917f2077e518 (diff)
Issue #1830264 by 10oclock: Respect number of front page posts setting.
-rw-r--r--weight.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/weight.module b/weight.module
index 700757a..aef534f 100644
--- a/weight.module
+++ b/weight.module
@@ -48,9 +48,9 @@ function weight_page_default() {
->orderBy('n.sticky', 'DESC')
->orderBy('w.weight', 'ASC')
->orderBy('n.created', 'DESC')
- ->extend('PagerDefault')
- ->limit(variable_get('default_nodes_main', 10))
->addTag('node_access');
+ $select = $select->extend('PagerDefault');
+ $select->limit(variable_get('default_nodes_main', 10));
$nids = $select->execute()->fetchCol();
if (!empty($nids)) {