summaryrefslogtreecommitdiff
path: root/actions/avatarbynickname.php
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-15 23:05:57 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-15 23:05:57 +0000
commit0357ea505dd8aba293a67f0bfa122c3bbd29e51b (patch)
tree2329651d23e2795cef00ea80bd1b252c7510fc94 /actions/avatarbynickname.php
parent8d9fb7711f32f7b7c0676641dd0c2b9343a5666f (diff)
parent4b0cf99e56f965e10eeb8b8b19e7b405bda49eaf (diff)
Merge branch 'uiredesign' of ../evan into uiredesign
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') {