summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-16 22:03:11 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-16 22:03:11 +0200
commit7ff12d74d9f408836f1a40475e92723c60cf56d5 (patch)
tree5ad787aec4f0884431a6698a05152fec41192b28 /core
parent9d49e04ee98e5ecaa587c43cd54907034aec7d4f (diff)
parentc39db52cfa4115f9790ba6b3ffa66052a097765e (diff)
downloadnextcloud-server-7ff12d74d9f408836f1a40475e92723c60cf56d5.tar.gz
nextcloud-server-7ff12d74d9f408836f1a40475e92723c60cf56d5.zip
Merge pull request #17998 from owncloud/highres_avatar
Highres avatar in top bar
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.user.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 0910047032d..4d9e3ae93d5 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -67,8 +67,10 @@
<?php if ($_['enableAvatars']): ?>
<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
<?php if ($_['userAvatarSet']): ?>
- <img src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32]));?>?requesttoken=<?php p(urlencode($_['requesttoken'])); ?>"
- alt="">
+ <img alt="" width="32" height="32"
+ src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32]));?>"
+ srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128]));?> 4x"
+ >
<?php endif; ?>
</div>
<?php endif; ?>