diff options
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/poche/Poche.class.php | 9 | ||||
-rwxr-xr-x | inc/poche/config.inc.default.php | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 81a18c86..a164ed47 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -337,6 +337,15 @@ class Poche | |||
337 | $this->messages->add('s', _('The tag has been successfully deleted')); | 337 | $this->messages->add('s', _('The tag has been successfully deleted')); |
338 | Tools::redirect(); | 338 | Tools::redirect(); |
339 | break; | 339 | break; |
340 | case 'reload_article' : | ||
341 | Tools::logm('reload article'); | ||
342 | $id = $_GET['id']; | ||
343 | $entry = $this->store->retrieveOneById($id, $this->user->getId()); | ||
344 | Tools::logm('reload url ' . $entry['url']); | ||
345 | $url = new Url(base64_encode($entry['url'])); | ||
346 | $this->action('add', $url); | ||
347 | break; | ||
348 | |||
340 | default: | 349 | default: |
341 | break; | 350 | break; |
342 | } | 351 | } |
diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php index a159e713..aaaf12a6 100755 --- a/inc/poche/config.inc.default.php +++ b/inc/poche/config.inc.default.php | |||
@@ -62,6 +62,7 @@ | |||
62 | @define ('SHOW_PRINTLINK', '1'); | 62 | @define ('SHOW_PRINTLINK', '1'); |
63 | // display or not percent of read in article view. Affects only default theme. | 63 | // display or not percent of read in article view. Affects only default theme. |
64 | @define ('SHOW_READPERCENT', '1'); | 64 | @define ('SHOW_READPERCENT', '1'); |
65 | @define ('RELOAD_ARTICLE', TRUE); | ||
65 | @define ('ABS_PATH', 'assets/'); | 66 | @define ('ABS_PATH', 'assets/'); |
66 | 67 | ||
67 | @define ('DEFAULT_THEME', 'baggy'); | 68 | @define ('DEFAULT_THEME', 'baggy'); |