summaryrefslogtreecommitdiff
path: root/app/views/index/index.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-12-08 02:50:42 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-12-08 02:50:42 +0100
commita4173dd2e979773f9a65b51c20ef0708ba1474d5 (patch)
treebba54686152793b0d4dae1bca721384c9f1b4da2 /app/views/index/index.phtml
parentadc704c3d75518fd7ed7a32b9ed21d9b7eb71c99 (diff)
On simule la pagination pour optimiser les requêtes en BDD (évite de tout charger puis d'en jeter les 3/4)
Diffstat (limited to 'app/views/index/index.phtml')
-rw-r--r--app/views/index/index.phtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 0ddf4efdd..cf3e07752 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -1,4 +1,5 @@
-<?php $items = $this->entryPaginator->items (); ?>
+<?php $items = $this->entryPaginator->items (true); ?>
+
<?php if (!empty ($items)) { ?>
<div id="top">
<?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>