diff options
| author | Daniel Andersson <sskraep@gmail.com> | 2013-04-19 21:25:26 +0200 |
|---|---|---|
| committer | Daniel Andersson <sskraep@gmail.com> | 2013-04-19 21:25:26 +0200 |
| commit | 1134497129597b71ff62b4fb223b2088dc7b0510 (patch) | |
| tree | fc9102f14b869b74eac97decd1d66b39d66398e7 | |
| parent | 6122c449abae6d6dfa5372580242b4abdf4d7a97 (diff) | |
Fix doubly applied basepaths to lockfiles.
| -rw-r--r-- | include/rssfuncs.php | 2 |
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; } |