summaryrefslogtreecommitdiffstats
path: root/settings/templates/personal.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-26 16:46:55 +0200
committerkondou <kondou@ts.unde.re>2013-08-26 16:46:55 +0200
commit31736a1df36745467ad176ee1ffe442b87546012 (patch)
tree5d65ed5f890abc9c1e275dd382d037f3f52031d4 /settings/templates/personal.php
parent9a8908b643c69451118ab76ca36e5fa0e704bd0a (diff)
downloadnextcloud-server-31736a1df36745467ad176ee1ffe442b87546012.tar.gz
nextcloud-server-31736a1df36745467ad176ee1ffe442b87546012.zip
Have a controller instead ofo avatar.php and fix some cropper-design
Diffstat (limited to 'settings/templates/personal.php')
-rw-r--r--settings/templates/personal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 5db28779b55..1ea005cf335 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -83,10 +83,10 @@ if($_['passwordChangeSupported']) {
}
?>
-<form id="avatar" method="post" action="<?php p(\OC_Helper::linkTo('', 'avatar.php')); ?>">
+<form id="avatar" method="post" action="<?php p(\OC_Helper::linkToRoute('core_avatar_post')); ?>">
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Profile Image')); ?></strong></legend>
- <img src="<?php print_unescaped(link_to('', 'avatar.php').'?user='.OC_User::getUser().'&size=128'); ?>"><br>
+ <img src="<?php print_unescaped(\OC_Helper::linkToRoute('core_avatar_get').'/'.OC_User::getUser().'/128'); ?>"><br>
<em><?php p($l->t('Has to be square and either PNG or JPG')); ?></em><br>
<div class="warning hidden"></div>
<div class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload new')); ?></div>