summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 86620ff95a7..a9d582dcc39 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -654,7 +654,9 @@ class OC {
self::registerCacheHooks();
self::registerFilesystemHooks();
- self::registerPreviewHooks();
+ if (\OC::$server->getSystemConfig()->getValue('enable_previews', false)) {
+ self::registerPreviewHooks();
+ }
self::registerShareHooks();
self::registerLogRotate();
self::registerLocalAddressBook();