diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-12 13:57:26 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-13 14:37:31 +0200 |
commit | 4d2835802f22e64371633b6e95a0ed718a3a3dc1 (patch) | |
tree | 291805351153b2e979e20db4122dca96ece63dd5 /lib/private/Files/Filesystem.php | |
parent | b2d68c00091f8bcba104cabfe0f7e2c78cc7a8d0 (diff) | |
download | nextcloud-server-4d2835802f22e64371633b6e95a0ed718a3a3dc1.tar.gz nextcloud-server-4d2835802f22e64371633b6e95a0ed718a3a3dc1.zip |
hide storage wrapper warning for the readonly storage
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files/Filesystem.php')
-rw-r--r-- | lib/private/Files/Filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index d835fea7f4c..113bb5a85c6 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -225,7 +225,7 @@ class Filesystem { * @param int $priority */ public static function addStorageWrapper($wrapperName, $wrapper, $priority = 50) { - if (self::$logWarningWhenAddingStorageWrapper) { + if (self::$logWarningWhenAddingStorageWrapper && $wrapperName !== 'readonly') { \OC::$server->getLogger()->warning("Storage wrapper '{wrapper}' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.", [ 'wrapper' => $wrapperName, 'app' => 'filesystem', |