Browse Source

Stop flooding the log, when previews are disabled

tags/v8.0.0alpha1
Joas Schilling 9 years ago
parent
commit
69a5a0c1a0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/preview.php

+ 1
- 1
lib/private/preview.php 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');
}

Loading…
Cancel
Save