Move avatar actions to controller AvatarFile
This commit is contained in:
@@ -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 . '">';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user