summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-05-06 14:37:59 +0200
committerJoas Schilling <nickvergessen@gmx.de>2015-05-06 14:37:59 +0200
commit892e2a3321fa08f0ddad568c233eb38eeffa9486 (patch)
tree60a888bbe5e748ded4542e89b159d95b54a58696 /lib
parent193c6a9f981468cd1087b85e6fd7cb854630014f (diff)
parent3e647afbd43a40d85b7ef97eca0fe5038661d174 (diff)
downloadnextcloud-server-892e2a3321fa08f0ddad568c233eb38eeffa9486.tar.gz
nextcloud-server-892e2a3321fa08f0ddad568c233eb38eeffa9486.zip
Merge pull request #16099 from labkode/prevent-preview-hooks
Do not trigger preview hooks if enable_previews is false
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();