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

Stop flooding the log, when previews are disabled
This commit is contained in:
Lukas Reschke 2014-12-03 14:51:03 +01:00
commit 8700ffe698
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}