aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/layout.base.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-01-17 12:30:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-01-29 22:21:54 +0100
commitf30877ea7c758346b700e4ac0f9c684a5ae99c7f (patch)
treeffbdd342c3bcc42d08d7315e78dc3075fe93a2b9 /core/templates/layout.base.php
parent139055c1ddec25465dd7644de9866cd6a1048da2 (diff)
downloadnextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.tar.gz
nextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.zip
Provide initial state
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/templates/layout.base.php')
-rw-r--r--core/templates/layout.base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index bad504c97cc..6ece48036e5 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -18,6 +18,9 @@
</head>
<body id="body-public" class="layout-base">
<?php include 'layout.noscript.warning.php'; ?>
+ <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
+ <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
+ <?php }?>
<div id="content" class="app-public" role="main">
<?php print_unescaped($_['content']); ?>
</div>