Move avatar actions to controller AvatarFile

This commit is contained in:
Frederic Guillot
2016-03-26 17:25:54 -04:00
parent 820c929ab3
commit 4ca716ec47
6 changed files with 43 additions and 44 deletions

View File

@@ -23,7 +23,7 @@ class AvatarFileProvider extends Base implements AvatarProviderInterface
*/
public function render(array $user, $size)
{
$url = $this->helper->url->href('AvatarFile', 'show', array('user_id' => $user['id'], 'size' => $size));
$url = $this->helper->url->href('AvatarFile', 'image', array('user_id' => $user['id'], 'size' => $size));
$title = $this->helper->text->e($user['name'] ?: $user['username']);
return '<img src="' . $url . '" alt="' . $title . '" title="' . $title . '">';
}