aboutsummaryrefslogtreecommitdiff
path: root/app/layout/layout.phtml
diff options
context:
space:
mode:
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 } ?>