]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
implement #1122
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index 18e1d0511a85a7d151633b2ae83216d81963aabf..bf323c49ce3c98f901ee8f7ca9c034ad67fc6f6f 100755 (executable)
@@ -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);
@@ -465,9 +465,11 @@ class Poche
                     Tools::redirect();
                 }
                 $tags = $this->store->retrieveTagsByEntry($id);
+                $all_tags = $this->store->retrieveAllTags($this->user->getId());
                 $tpl_vars = array(
                     'entry_id' => $id,
                     'tags' => $tags,
+                    'alltags' => $all_tags,
                     'entry' => $entry,
                 );
                 break;