diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-12-16 14:34:10 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-12-17 14:03:50 +0100 |
commit | 2eab0f21211762869db74891c2e2611f96bfef15 (patch) | |
tree | 46e5a05cbb1c20a251e2fbfa94a1723ef7586827 /lib/private/preview.php | |
parent | fd854247423de0d74b05b44bf16572d2be943819 (diff) | |
download | nextcloud-server-2eab0f21211762869db74891c2e2611f96bfef15.tar.gz nextcloud-server-2eab0f21211762869db74891c2e2611f96bfef15.zip |
Allow disabling previews per mount
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r-- | lib/private/preview.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index 7305bf1cc0e..a586c94fd11 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -922,6 +922,11 @@ class Preview { return false; } + $mount = $file->getMountPoint(); + if ($mount and !$mount->getOption('previews', true)){ + return false; + } + //check if there are preview backends if (empty(self::$providers)) { self::initProviders(); |