From: Thomas Citharel Date: Sat, 7 Mar 2015 23:22:47 +0000 (+0100) Subject: mark read and go to next now in the right direction X-Git-Tag: 1.9.1alpha1~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8a66458ba267f01f3525cd635c912574861926fe;p=github%2Fwallabag%2Fwallabag.git mark read and go to next now in the right direction --- 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); diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index 12024cdc..a57d1771 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 %}