Merge pull request #18794 from individual-it/reuse_systemConfig
reuse existing $systemConfig variable
This commit is contained in:
commit
3bc287ff63
|
@ -674,7 +674,7 @@ class OC {
|
||||||
|
|
||||||
self::registerCacheHooks();
|
self::registerCacheHooks();
|
||||||
self::registerFilesystemHooks();
|
self::registerFilesystemHooks();
|
||||||
if (\OC::$server->getSystemConfig()->getValue('enable_previews', true)) {
|
if ($systemConfig->getValue('enable_previews', true)) {
|
||||||
self::registerPreviewHooks();
|
self::registerPreviewHooks();
|
||||||
}
|
}
|
||||||
self::registerShareHooks();
|
self::registerShareHooks();
|
||||||
|
|
Loading…
Reference in New Issue