diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-13 14:50:06 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-02-19 16:08:40 +0100 |
commit | 08688af2751a966c3e3bdf811c6eb97247fe435e (patch) | |
tree | 885c70744d8d5685cc8c45daef69de1dd178b98b /core/templates/layout.guest.php | |
parent | e7f0e8ba03363f37631ded3099d4e2bf0df5d5f6 (diff) | |
download | nextcloud-server-08688af2751a966c3e3bdf811c6eb97247fe435e.tar.gz nextcloud-server-08688af2751a966c3e3bdf811c6eb97247fe435e.zip |
Fix OC.getCurrentUser() on guest pages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/templates/layout.guest.php')
-rw-r--r-- | core/templates/layout.guest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 39c7f83a3ca..608ce03186c 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -1,6 +1,10 @@ <!DOCTYPE html> <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" > - <head data-requesttoken="<?php p($_['requesttoken']); ?>"> + <head +<?php if ($_['user_uid']) { ?> + data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" +<?php } ?> + data-requesttoken="<?php p($_['requesttoken']); ?>"> <meta charset="utf-8"> <title> <?php p($theme->getTitle()); ?> |