]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
merge
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index 5b8e235f11fd5b9d679ded9486d65154c0f3b5bc..fb74ab9a0aaa23ec1e0ba0eb7b89e4de8cda384a 100755 (executable)
@@ -337,6 +337,16 @@ class Poche
                 $this->messages->add('s', _('The tag has been successfully deleted'));
                 Tools::redirect();
                 break;
+
+            case 'reload_article' :
+                Tools::logm('reload article');
+                $id = $_GET['id'];
+                $entry = $this->store->retrieveOneById($id, $this->user->getId());
+                Tools::logm('reload url ' . $entry['url']);
+                $url = new Url(base64_encode($entry['url']));
+                $this->action('add', $url);
+                break;
+                
             /* For some unknown reason I can't get displayView() to work here (it redirects to home view afterwards). So here's a dirty fix which redirects directly to URL */
             case 'random':
                 $count = $this->store->getEntriesByViewCount($view, $this->user->getId());