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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-10 15:45:18 +02:00
parent f95f1b20f1
commit cd2b567c21
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}