aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-03-14 08:54:44 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-03-14 08:54:44 +0100
commit8d7cd2ccd59e152e4023ed9f54b9f693597a40d3 (patch)
treec3723b956e8f8ba0b3161413f6e9e073bfb5412b /inc/poche
parentc0586a906c2bee5f5be445e614696a7078a7c906 (diff)
downloadwallabag-8d7cd2ccd59e152e4023ed9f54b9f693597a40d3.tar.gz
wallabag-8d7cd2ccd59e152e4023ed9f54b9f693597a40d3.tar.zst
wallabag-8d7cd2ccd59e152e4023ed9f54b9f693597a40d3.zip
[add] remove import file in CACHE when import is over
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Poche.class.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 480f6d45..5b1a0672 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -388,6 +388,7 @@ class Poche
388 } 388 }
389 389
390 //search for possible duplicate if not in import mode 390 //search for possible duplicate if not in import mode
391 $duplicate = NULL;
391 if (!$import) { 392 if (!$import) {
392 $duplicate = $this->store->retrieveOneByURL($url->getUrl(), $this->user->getId()); 393 $duplicate = $this->store->retrieveOneByURL($url->getUrl(), $this->user->getId());
393 } 394 }
@@ -874,6 +875,8 @@ class Poche
874 # the second <ol> is for read links 875 # the second <ol> is for read links
875 $read = 1; 876 $read = 1;
876 } 877 }
878
879 $unlink = unlink($targetFile);
877 $this->messages->add('s', _('import from instapaper completed. You have to execute the cron to fetch content.')); 880 $this->messages->add('s', _('import from instapaper completed. You have to execute the cron to fetch content.'));
878 Tools::logm('import from instapaper completed'); 881 Tools::logm('import from instapaper completed');
879 Tools::redirect(); 882 Tools::redirect();
@@ -918,6 +921,8 @@ class Poche
918 # the second <ul> is for read links 921 # the second <ul> is for read links
919 $read = 1; 922 $read = 1;
920 } 923 }
924
925 $unlink = unlink($targetFile);
921 $this->messages->add('s', _('import from pocket completed. You have to execute the cron to fetch content.')); 926 $this->messages->add('s', _('import from pocket completed. You have to execute the cron to fetch content.'));
922 Tools::logm('import from pocket completed'); 927 Tools::logm('import from pocket completed');
923 Tools::redirect(); 928 Tools::redirect();
@@ -974,6 +979,8 @@ class Poche
974 } 979 }
975 } 980 }
976 } 981 }
982
983 unlink($targetFile);
977 $this->messages->add('s', _('import from Readability completed. You have to execute the cron to fetch content.')); 984 $this->messages->add('s', _('import from Readability completed. You have to execute the cron to fetch content.'));
978 Tools::logm('import from Readability completed'); 985 Tools::logm('import from Readability completed');
979 Tools::redirect(); 986 Tools::redirect();
@@ -1020,6 +1027,8 @@ class Poche
1020 } 1027 }
1021 1028
1022 } 1029 }
1030
1031 unlink($targetFile);
1023 $this->messages->add('s', _('import from Poche completed. You have to execute the cron to fetch content.')); 1032 $this->messages->add('s', _('import from Poche completed. You have to execute the cron to fetch content.'));
1024 Tools::logm('import from Poche completed'); 1033 Tools::logm('import from Poche completed');
1025 Tools::redirect(); 1034 Tools::redirect();