Allow disabling previews per mount

This commit is contained in:
Robin Appelman 2014-12-16 14:34:10 +01:00
parent fd85424742
commit 2eab0f2121

View file

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