aboutsummaryrefslogtreecommitdiff
path: root/templates/header.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-12-12 16:35:07 +0100
committerJan-Hendrik Willms <tleilax+github@gmail.com>2022-12-12 16:35:07 +0100
commitd6e08c527ea4f438eef0683bdada93fe71d14835 (patch)
tree5ebc06bf7e60603614bc63b0318006f270ddf41f /templates/header.php
parentba9525cdea74567e351abf911bb6f75299fb2749 (diff)
fix encoding of json data, re #32
Diffstat (limited to 'templates/header.php')
-rw-r--r--templates/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/header.php b/templates/header.php
index b3bf385..49a747a 100644
--- a/templates/header.php
+++ b/templates/header.php
@@ -77,7 +77,7 @@ if ($navigation) {
$me = ['username' => 'nobody'];
$hasSidebar = false;
} ?>
- <responsive-navigation :me='<?= json_encode($me) ?>' context="<?= htmlReady(Context::get() ?
+ <responsive-navigation :me="<?= htmlReady(json_encode($me)) ?>" context="<?= htmlReady(Context::get() ?
Context::get()->getFullname() : '') ?>" :has-sidebar="<?= $hasSidebar ? 'true' : 'false' ?>">
</responsive-navigation>
</div>