Commit 8700ffe6 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #12572 from owncloud/issue/12571-disabled-preview-logflood

Stop flooding the log, when previews are disabled
parents 7291b915 69a5a0c1
......@@ -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');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment