[Controller] Update settings/avatar

This commit is contained in:
Hugo Sales 2020-07-26 00:27:08 +00:00 committed by Hugo Sales
parent db32a5fcfc
commit d08c4a1f62
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -113,8 +113,9 @@ class UserPanel extends AbstractController
public function avatar(Request $request)
{
$avatar = Form::create([
[_m('avatar'), FileType::class, ['help' => 'You can upload your personal avatar. The maximum file size is 64MB.', 'label_format' => 'Avatar']],
['save', SubmitType::class, ['label' => _m('Submit')]], ]);
['avatar', FileType::class, ['label' => _m('avatar'), 'help' => _m('You can upload your personal avatar. The maximum file size is 10MB.')]],
['save', SubmitType::class, ['label' => _m('Submit')]],
]);
return ['_template' => 'settings/avatar.html.twig', 'avatar' => $avatar->createView()];
}