summaryrefslogtreecommitdiff
path: root/app/layout/layout.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-30 22:47:48 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-30 22:47:48 +0100
commit1e077160fca3306a273ecae5a366fd756c32baee (patch)
tree942066b18dbf63c63f2dbddb547ed3e9bcc66d8d /app/layout/layout.phtml
parent37ce14c093c3dd009bcd7b627c5e819ac88dd5b7 (diff)
Optimisation recherche et pagination
* Optimisation recherche SQL avec utilisation de HAVING plutôt que WHERE * Simplification et amélioration des performances en supprimant de RSSPaginator qui n'aidait plus vraiment et nécessitait plus de code et des copies de données. * Correction d'un bug dans le titre de la page introduit récemment, et simplification
Diffstat (limited to 'app/layout/layout.phtml')
-rw-r--r--app/layout/layout.phtml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 9b502275c..6fc5c1cf0 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -10,10 +10,9 @@
<?php $this->renderHelper ('javascript_vars'); ?>
//]]></script>
<?php
- $next = isset($this->entryPaginator) ? $this->entryPaginator->next() : '';
- if (!empty($next)) {
+ if (!empty($this->nextId)) {
$params = Request::params ();
- $params['next'] = $next;
+ $params['next'] = $this->nextId;
?>
<link id="prefetch" rel="next prefetch" href="<?php echo Url::display (array ('c' => Request::controllerName (), 'a' => Request::actionName (), 'params' => $params)); ?>" />
<?php } ?>