From 8a66458ba267f01f3525cd635c912574861926fe Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 8 Mar 2015 00:22:47 +0100 Subject: mark read and go to next now in the right direction --- inc/poche/Poche.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 18e1d051..c6c91c4a 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -315,7 +315,7 @@ class Poche } break; case 'archive_and_next' : - $nextid = $this->store->getNextArticle($id, $this->user->getId()); + $nextid = $this->store->getPreviousArticle($id, $this->user->getId()); $this->store->archiveById($id, $this->user->getId()); Tools::logm('archive link #' . $id); Tools::redirect('?view=view&id=' . $nextid); -- cgit v1.2.3