]> git.wh0rd.org Git - tt-rss.git/commitdiff
Fix doubly applied basepaths to lockfiles.
authorDaniel Andersson <sskraep@gmail.com>
Fri, 19 Apr 2013 19:25:26 +0000 (21:25 +0200)
committerDaniel Andersson <sskraep@gmail.com>
Fri, 19 Apr 2013 19:25:26 +0000 (21:25 +0200)
include/rssfuncs.php

index 6ccf520af11efc2a6022c18ec008af1f347b415d..2be791cb7cb345d5a46fc4e7c51098f3cf4c3034 100644 (file)
 
                        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;
                                        }