Only do all the "find path" magic when we need to register them

remotes/origin/etag-endpoint
Joas Schilling 11 years ago
parent e38dea3542
commit 9c86574acf
  1. 6
      lib/private/previewmanager.php

@ -31,7 +31,11 @@ class PreviewManager implements IPreview {
*/
public function __construct(\OCP\IConfig $config) {
$this->config = $config;
$this->registerCoreProviders();
if ($this->config->getSystemValue('enable_previews', true)) {
// Register the default providers like txt, image, ...
$this->registerCoreProviders();
}
}
/**

Loading…
Cancel
Save