Merge pull request #20705 from owncloud/fix_20648

Fix overriding function from 3rdparty warning
This commit is contained in:
Thomas Müller 2015-11-25 15:24:20 +01:00
commit afe76840f8
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ class Encryption extends Wrapper {
)
));
return self::wrapSource($source, $mode, $context, 'ocencryption', $wrapper);
return self::wrapSource($source, $context, 'ocencryption', $wrapper, $mode);
}
/**
@ -181,7 +181,7 @@ class Encryption extends Wrapper {
* @return resource
* @throws \BadMethodCallException
*/
protected static function wrapSource($source, $mode, $context, $protocol, $class) {
protected static function wrapSource($source, $context, $protocol, $class, $mode = 'r+') {
try {
stream_wrapper_register($protocol, $class);
if (@rewinddir($source) === false) {