diff options
| author | 2012-12-08 02:50:42 +0100 | |
|---|---|---|
| committer | 2012-12-08 02:50:42 +0100 | |
| commit | a4173dd2e979773f9a65b51c20ef0708ba1474d5 (patch) | |
| tree | bba54686152793b0d4dae1bca721384c9f1b4da2 /app/views/index/index.phtml | |
| parent | adc704c3d75518fd7ed7a32b9ed21d9b7eb71c99 (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.phtml | 3 |
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 ()) { ?> |
