From fdf26c5a3f4718fcadc214eb69a91f780ce4045c Mon Sep 17 00:00:00 2001 From: ringmaster Date: Fri, 16 May 2014 12:12:27 -0400 Subject: Rename variable to something more appropriate. --- lib/private/files/cache/scanner.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/files/cache') diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 19321da8ec1..2790d8581f7 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -248,9 +248,9 @@ class Scanner extends BasicEmitter { $removedChildren = \array_diff($existingChildren, $newChildren); foreach ($removedChildren as $childName) { $child = ($path) ? $path . '/' . $childName : $childName; - $addToCache = true; - \OC_Hook::emit('Scanner', 'removeFromCache', array('file' => $child, 'removeFromCache' => &$addToCache)); - if($addToCache) { + $removeFromCache = true; + \OC_Hook::emit('Scanner', 'removeFromCache', array('file' => $child, 'removeFromCache' => &$removeFromCache)); + if($removeFromCache) { $this->cache->remove($child); } } -- cgit v1.2.3