Make sure we use the passed-in storage when there is one

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4792/head
Joas Schilling 9 years ago
parent f95f1b20f1
commit cd2b567c21
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
  1. 5
      lib/private/Files/Storage/Wrapper/PermissionsMask.php

@ -149,6 +149,9 @@ class PermissionsMask extends Wrapper {
}
public function getScanner($path = '', $storage = null) {
return parent::getScanner($path, $this->storage);
if (!$storage) {
$storage = $this->storage;
}
return parent::getScanner($path, $storage);
}
}

Loading…
Cancel
Save