aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-03-13 23:33:49 +0100
committerThomas Citharel <tcit@tcit.fr>2015-03-13 23:33:49 +0100
commitf5618feb73343f0a120a809116c443630d70a87c (patch)
treef544c7db283dd77a1c639de7b5299df0490f61ff /inc
parent3d2b9e2e237780e8f2a207e1b964b32679407265 (diff)
downloadwallabag-f5618feb73343f0a120a809116c443630d70a87c.tar.gz
wallabag-f5618feb73343f0a120a809116c443630d70a87c.tar.zst
wallabag-f5618feb73343f0a120a809116c443630d70a87c.zip
fix #1154
Diffstat (limited to 'inc')
-rwxr-xr-xinc/poche/Tools.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index d0b31d4f..c8fb2e52 100755
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -392,8 +392,11 @@ final class Tools
392 ); 392 );
393 393
394 foreach ($files as $fileInfo) { 394 foreach ($files as $fileInfo) {
395 $todo = ($fileInfo->isDir() ? 'rmdir' : 'unlink'); 395 $filename = $fileInfo->getFilename();
396 $todo($fileInfo->getRealPath()); 396 if (!$filename[0] == '.') {
397 $todo = ($fileInfo->isDir() ? 'rmdir' : 'unlink');
398 $todo($fileInfo->getRealPath());
399 }
397 } 400 }
398 401
399 Tools::logm('empty cache'); 402 Tools::logm('empty cache');