summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-18 00:07:18 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-20 16:18:50 +0000
commit88a180fadb73f21cb0af32b4d2a9db6d6baf35a5 (patch)
tree0a31c63d2f833275d272735380454eef1ac04c48 /lib/private
parent95d81c36ffff9c19681255f2af86e101409f2125 (diff)
downloadnextcloud-server-88a180fadb73f21cb0af32b4d2a9db6d6baf35a5.tar.gz
nextcloud-server-88a180fadb73f21cb0af32b4d2a9db6d6baf35a5.zip
Fix fileglobalgc unlink parameter warnings
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/cache/fileglobalgc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php
index 039992718ab..0bd3f73a5aa 100644
--- a/lib/private/cache/fileglobalgc.php
+++ b/lib/private/cache/fileglobalgc.php
@@ -48,6 +48,8 @@ class FileGlobalGC extends Job {
return;
}
$paths = $this->getExpiredPaths($cacheDir, $now);
- array_walk($paths, 'unlink');
+ array_walk($paths, function($file) {
+ unlink($file);
+ });
}
}