From d0411b1283256a046d44a131bb09c2b2b3cb11c6 Mon Sep 17 00:00:00 2001 From: fretzl Date: Tue, 16 Dec 2014 10:55:28 +0100 Subject: [PATCH] This reverts the previous fix --- zp-core/zp-extensions/zenpage/zenpage-class-news.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zp-core/zp-extensions/zenpage/zenpage-class-news.php b/zp-core/zp-extensions/zenpage/zenpage-class-news.php index aa3f2441e2..81368f8d65 100644 --- a/zp-core/zp-extensions/zenpage/zenpage-class-news.php +++ b/zp-core/zp-extensions/zenpage/zenpage-class-news.php @@ -344,7 +344,7 @@ function getIndex($sortorder, $sortdirection, $sticky) { function getPrevArticle($sortorder = 'date', $sortdirection = false, $sticky = true) { global $_zp_zenpage, $_zp_current_zenpage_news; $index = $this->getIndex($sortorder, $sortdirection, $sticky); - $article = $_zp_zenpage->getArticle($index + 1); + $article = $_zp_zenpage->getArticle($index - 1); return $article; } @@ -359,7 +359,7 @@ function getPrevArticle($sortorder = 'date', $sortdirection = false, $sticky = t function getNextArticle($sortorder = 'date', $sortdirection = false, $sticky = true) { global $_zp_zenpage, $_zp_current_zenpage_news; $index = $this->getIndex($sortorder, $sortdirection, $sticky); - $article = $_zp_zenpage->getArticle($index - 1); + $article = $_zp_zenpage->getArticle($index + 1); return $article; }