aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-28 00:38:05 -0700
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-28 00:38:05 -0700
commit05824223a991358806f91c76f6bb242cbc3816a0 (patch)
tree0e44e51550a58c4cd116a4bfd53513e39ec83198 /inc/poche
parent2b191d8c37bd774bd3eecbf42a5ac9d948ee61a9 (diff)
parentf616ab60efc502b919b9b72f81aee2975b2e8465 (diff)
downloadwallabag-05824223a991358806f91c76f6bb242cbc3816a0.tar.gz
wallabag-05824223a991358806f91c76f6bb242cbc3816a0.tar.zst
wallabag-05824223a991358806f91c76f6bb242cbc3816a0.zip
Merge pull request #291 from banux/dev
Autoclose
Diffstat (limited to 'inc/poche')
-rw-r--r--inc/poche/Poche.class.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 39d43761..3ecaf084 100644
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -327,7 +327,7 @@ class Poche
327 /** 327 /**
328 * Call action (mark as fav, archive, delete, etc.) 328 * Call action (mark as fav, archive, delete, etc.)
329 */ 329 */
330 public function action($action, Url $url, $id = 0, $import = FALSE) 330 public function action($action, Url $url, $id = 0, $import = FALSE, $autoclose = FALSE)
331 { 331 {
332 switch ($action) 332 switch ($action)
333 { 333 {
@@ -358,7 +358,11 @@ class Poche
358 } 358 }
359 359
360 if (!$import) { 360 if (!$import) {
361 Tools::redirect('?view=home'); 361 if ($autoclose == TRUE) {
362 Tools::redirect('?view=home');
363 } else {
364 Tools::redirect('?view=home&closewin=true');
365 }
362 } 366 }
363 break; 367 break;
364 case 'delete': 368 case 'delete':