diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-12-03 12:52:42 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-12-03 12:52:42 +0100 |
commit | 69a5a0c1a0d6ef8e99248df58e56bdee0214056d (patch) | |
tree | 81b80f1c2b31974ea6defbc0a6859c5acc119364 /lib | |
parent | 8c8c257ce34a45cc90f2a20992643a3215b7958a (diff) | |
download | nextcloud-server-69a5a0c1a0d6ef8e99248df58e56bdee0214056d.tar.gz nextcloud-server-69a5a0c1a0d6ef8e99248df58e56bdee0214056d.zip |
Stop flooding the log, when previews are disabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/preview.php | 2 |
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'); } |