summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-23 03:46:52 -0700
committerAndrew Dolgov <[email protected]>2013-04-23 03:46:52 -0700
commit1e253d1ec9a93ca26e5e54c79a9e61d8e858102c (patch)
tree802d37f83185f24857aa27a3dee647a1dd2b5a45
parent84a463ecb8ce7499e28c21233b2b1dfdf5c2d611 (diff)
parent1134497129597b71ff62b4fb223b2088dc7b0510 (diff)
Merge pull request #163 from dandersson/fix_lock_path
Fix doubly applied basepaths to lockfiles.
-rw-r--r--include/rssfuncs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 6ccf520af..2be791cb7 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -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;
}