summaryrefslogtreecommitdiff
path: root/actions/avatarbynickname.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/avatarbynickname.php')
-rw-r--r--actions/avatarbynickname.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/actions/avatarbynickname.php b/actions/avatarbynickname.php
index 666f386f6..d2d078b61 100644
--- a/actions/avatarbynickname.php
+++ b/actions/avatarbynickname.php
@@ -26,28 +26,28 @@ class AvatarbynicknameAction extends Action
parent::handle($args);
$nickname = $this->trimmed('nickname');
if (!$nickname) {
- $this->client_error(_('No nickname.'));
+ $this->clientError(_('No nickname.'));
return;
}
$size = $this->trimmed('size');
if (!$size) {
- $this->client_error(_('No size.'));
+ $this->clientError(_('No size.'));
return;
}
$size = strtolower($size);
if (!in_array($size, array('original', '96', '48', '24'))) {
- $this->client_error(_('Invalid size.'));
+ $this->clientError(_('Invalid size.'));
return;
}
$user = User::staticGet('nickname', $nickname);
if (!$user) {
- $this->client_error(_('No such user.'));
+ $this->clientError(_('No such user.'));
return;
}
$profile = $user->getProfile();
if (!$profile) {
- $this->client_error(_('User has no profile.'));
+ $this->clientError(_('User has no profile.'));
return;
}
if ($size == 'original') {