Fix doubly applied basepaths to lockfiles.

This commit is contained in:
Daniel Andersson 2013-04-19 21:25:26 +02:00
parent 6122c449ab
commit 1134497129

View file

@ -1159,7 +1159,7 @@
if ($files) { if ($files) {
foreach ($files as $file) { 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); unlink($file);
++$num_deleted; ++$num_deleted;
} }