diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-03 22:42:45 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-23 19:12:53 +0200 |
commit | cbd20867b59779d7aff5a024e4287206e3c028e0 (patch) | |
tree | a1f2034d8d9ed5b17a4f9134e377926f93ab4f90 /lib/private/TemplateLayout.php | |
parent | 24e58947d6fba02c3d0ff709213f527411fcec0c (diff) | |
download | nextcloud-server-cbd20867b59779d7aff5a024e4287206e3c028e0.tar.gz nextcloud-server-cbd20867b59779d7aff5a024e4287206e3c028e0.zip |
Provide config though initial state service
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r-- | lib/private/TemplateLayout.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index ddddb8704c8..1fbf0acb99c 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -49,6 +49,7 @@ use OC\Template\JSCombiner; use OC\Template\JSConfigHelper; use OC\Template\SCSSCacher; use OCP\Defaults; +use OCP\IInitialStateService; use OCP\Support\Subscription\IRegistry; class TemplateLayout extends \OC_Template { @@ -183,7 +184,8 @@ class TemplateLayout extends \OC_Template { \OC::$server->getGroupManager(), \OC::$server->getIniWrapper(), \OC::$server->getURLGenerator(), - \OC::$server->getCapabilitiesManager() + \OC::$server->getCapabilitiesManager(), + \OC::$server->query(IInitialStateService::class) ); $this->assign('inline_ocjs', $jsConfigHelper->getConfig()); } else { |