Rename variable to something more appropriate.
This commit is contained in:
parent
645e7035a4
commit
fdf26c5a3f
|
@ -248,9 +248,9 @@ class Scanner extends BasicEmitter {
|
||||||
$removedChildren = \array_diff($existingChildren, $newChildren);
|
$removedChildren = \array_diff($existingChildren, $newChildren);
|
||||||
foreach ($removedChildren as $childName) {
|
foreach ($removedChildren as $childName) {
|
||||||
$child = ($path) ? $path . '/' . $childName : $childName;
|
$child = ($path) ? $path . '/' . $childName : $childName;
|
||||||
$addToCache = true;
|
$removeFromCache = true;
|
||||||
\OC_Hook::emit('Scanner', 'removeFromCache', array('file' => $child, 'removeFromCache' => &$addToCache));
|
\OC_Hook::emit('Scanner', 'removeFromCache', array('file' => $child, 'removeFromCache' => &$removeFromCache));
|
||||||
if($addToCache) {
|
if($removeFromCache) {
|
||||||
$this->cache->remove($child);
|
$this->cache->remove($child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue