1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:05:55 +00:00

Merge pull request #163 from dandersson/fix_lock_path

Fix doubly applied basepaths to lockfiles.
This commit is contained in:
Andrew Dolgov
2013-04-23 03:46:52 -07:00

View File

@@ -1159,7 +1159,7 @@
if ($files) {
foreach ($files as $file) {
if (!file_is_locked($file) && time() - filemtime($file) > 86400*2) {
if (!file_is_locked(basename($file)) && time() - filemtime($file) > 86400*2) {
unlink($file);
++$num_deleted;
}