diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-13 14:50:06 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-20 12:22:31 +0000 |
commit | 2f98c873fab666b0297e540b5c816a72fe945855 (patch) | |
tree | bb961e8b2920ac7893bf7ab6aae01ff5a63004c4 /core | |
parent | 6e110c35b03ed780b1810e9bb68877a800fee195 (diff) | |
download | nextcloud-server-2f98c873fab666b0297e540b5c816a72fe945855.tar.gz nextcloud-server-2f98c873fab666b0297e540b5c816a72fe945855.zip |
Fix OC.getCurrentUser() on guest pages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-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 ae685959351..1df2eade09b 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()); ?> |