From 8a66458ba267f01f3525cd635c912574861926fe Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 8 Mar 2015 00:22:47 +0100 Subject: [PATCH] mark read and go to next now in the right direction --- inc/poche/Poche.class.php | 2 +- themes/baggy/view.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 18e1d0511..c6c91c4a6 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); diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index 12024cdc0..a57d1771b 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -12,7 +12,7 @@ {% if navigate.next %}
  • {% trans "Next Article" %}
  • {% endif %}
  • {{ entry.url | e | getDomain }}
  • {% trans "Toggle mark as read" %}
  • - {% if navigate.next %}
  • {% trans "Toggle mark as read and go to next article" %}
  • {% endif %} + {% if navigate.previous %}
  • {% trans "Toggle mark as read and go to next article" %}
  • {% endif %}
  • {% trans "Toggle favorite" %}
  • {% trans "Delete" %}
  • {% if constant('SHARE_TWITTER') == 1 %}
  • {% endif %}