summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-03 14:51:03 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-03 14:51:03 +0100
commit8700ffe69809d7551a08f224537650b43add2a59 (patch)
tree9237041348c855ea3e7b53c78627c7b231034a47 /lib
parent7291b915b8623662af3cfbba3c8eb02e279e3b32 (diff)
parent69a5a0c1a0d6ef8e99248df58e56bdee0214056d (diff)
downloadnextcloud-server-8700ffe69809d7551a08f224537650b43add2a59.tar.gz
nextcloud-server-8700ffe69809d7551a08f224537650b43add2a59.zip
Merge pull request #12572 from owncloud/issue/12571-disabled-preview-logflood
Stop flooding the log, when previews are disabled
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php
index f6c8c485d03..7305bf1cc0e 100644
--- a/lib/private/preview.php
+++ b/lib/private/preview.php
@@ -98,7 +98,7 @@ class Preview {
self::initProviders();
}
- if (empty(self::$providers)) {
+ if (empty(self::$providers) && \OC::$server->getConfig()->getSystemValue('enable_previews', true)) {
\OC_Log::write('core', 'No preview providers exist', \OC_Log::ERROR);
throw new \Exception('No preview providers');
}