From 8d7cd2ccd59e152e4023ed9f54b9f693597a40d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 14 Mar 2014 08:54:44 +0100 Subject: [PATCH] [add] remove import file in CACHE when import is over --- inc/poche/Poche.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 480f6d4..5b1a067 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -388,6 +388,7 @@ class Poche } //search for possible duplicate if not in import mode + $duplicate = NULL; if (!$import) { $duplicate = $this->store->retrieveOneByURL($url->getUrl(), $this->user->getId()); } @@ -874,6 +875,8 @@ class Poche # the second
    is for read links $read = 1; } + + $unlink = unlink($targetFile); $this->messages->add('s', _('import from instapaper completed. You have to execute the cron to fetch content.')); Tools::logm('import from instapaper completed'); Tools::redirect(); @@ -918,6 +921,8 @@ class Poche # the second