diff options
author | Thomas Citharel <tcit@tcit.fr> | 2014-12-13 22:56:30 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2014-12-13 22:56:30 +0100 |
commit | 44b95cb81deae35f58e0058910afde2f2ffb9a60 (patch) | |
tree | 521cec627e487e873742fa628655e8f787d85d1e /inc/poche/Poche.class.php | |
parent | 9c55ed0923273da886497cb62302a79622e34a74 (diff) | |
download | wallabag-44b95cb81deae35f58e0058910afde2f2ffb9a60.tar.gz wallabag-44b95cb81deae35f58e0058910afde2f2ffb9a60.tar.zst wallabag-44b95cb81deae35f58e0058910afde2f2ffb9a60.zip |
added reload function
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 27d6f4a6..f5262a8e 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -303,6 +303,15 @@ class Poche | |||
303 | $this->messages->add('s', _('The tag has been successfully deleted')); | 303 | $this->messages->add('s', _('The tag has been successfully deleted')); |
304 | Tools::redirect(); | 304 | Tools::redirect(); |
305 | break; | 305 | break; |
306 | case 'reload_article' : | ||
307 | Tools::logm('reload article'); | ||
308 | $id = $_GET['id']; | ||
309 | $entry = $this->store->retrieveOneById($id, $this->user->getId()); | ||
310 | Tools::logm('reload url ' . $entry['url']); | ||
311 | $url = new Url(base64_encode($entry['url'])); | ||
312 | $this->action('add', $url); | ||
313 | break; | ||
314 | |||
306 | default: | 315 | default: |
307 | break; | 316 | break; |
308 | } | 317 | } |
@@ -812,4 +821,4 @@ class Poche | |||
812 | } | 821 | } |
813 | 822 | ||
814 | 823 | ||
815 | } \ No newline at end of file | 824 | } |