Commit 69a5a0c1 authored by Joas Schilling's avatar Joas Schilling
Browse files

Stop flooding the log, when previews are disabled

parent 8c8c257c
......@@ -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