- return;
- }
- $size = $this->trimmed('size');
- if (!$size) {
- // TRANS: Client error displayed trying to get an avatar without providing an avatar size.
- $this->clientError(_('No size.'));
- return;
- }
- $size = strtolower($size);
- if (!in_array($size, array('original', '96', '48', '24'))) {
- // TRANS: Client error displayed trying to get an avatar providing an invalid avatar size.
- $this->clientError(_('Invalid size.'));
- return;