summaryrefslogtreecommitdiffstats
path: root/lib/private/files/stream
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-24 13:25:27 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-24 13:25:50 +0100
commitcfdf2b997658465c70f36d4eceee76277310eb99 (patch)
treec24c4944dd4a2e309808bbb0bb50464f88f449e6 /lib/private/files/stream
parentb7b6770d3592ea43c026ca9159143105f2f42237 (diff)
downloadnextcloud-server-cfdf2b997658465c70f36d4eceee76277310eb99.tar.gz
nextcloud-server-cfdf2b997658465c70f36d4eceee76277310eb99.zip
Fix overriding function from 3rdparty warning
Fixes #20648
Diffstat (limited to 'lib/private/files/stream')
-rw-r--r--lib/private/files/stream/encryption.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index 4c328993ef7..585a697c5d1 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -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) {