]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
added reload function
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index 27d6f4a65e1ca22079a700d8dc2cfcdde851e582..f5262a8e8fc5907734560b01b24a7d32b2e13abf 100755 (executable)
@@ -303,6 +303,15 @@ 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;
+                
             default:
                 break;
         }
@@ -812,4 +821,4 @@ class Poche
     }
 
 
-}
\ No newline at end of file
+}