summaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-04-03 22:42:45 +0200
committerJulius Härtl <jus@bitgrid.net>2020-04-23 19:12:53 +0200
commitcbd20867b59779d7aff5a024e4287206e3c028e0 (patch)
treea1f2034d8d9ed5b17a4f9134e377926f93ab4f90 /lib/private/TemplateLayout.php
parent24e58947d6fba02c3d0ff709213f527411fcec0c (diff)
downloadnextcloud-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.php4
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 {