summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-27 12:03:58 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-27 12:03:58 +0100
commit8818165e0753f847cdd1a6cbfb8aa01216c1927c (patch)
tree86926533145b6233da7f6405512749399b704494 /core/templates
parent1c6857d92c835d499e37bebd24aaf325373dc7f1 (diff)
downloadnextcloud-server-8818165e0753f847cdd1a6cbfb8aa01216c1927c.tar.gz
nextcloud-server-8818165e0753f847cdd1a6cbfb8aa01216c1927c.zip
Fix avatars in master
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 075f72021c2..f7c81140d12 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -68,7 +68,7 @@
<?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(link_to('', 'index.php').'/avatar/'.$_['user_uid'].'/32?requesttoken='.$_['requesttoken']); ?>"
+ <img src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core_avatar_get', ['user' => $_['user_uid'], 'size' => 32]));?>?requesttoken=<?php p(urlencode($_['requesttoken'])); ?>"
alt="" />
<?php endif; ?>
</div>