summaryrefslogtreecommitdiff
path: root/actions/tagother.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 23:03:38 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 23:03:38 +0000
commit4b0cf99e56f965e10eeb8b8b19e7b405bda49eaf (patch)
tree094c2948648d79290326130f9cd75a95afc6035d /actions/tagother.php
parenteaa81d25fa7bd954132ce7f901fae69b0d46ec1a (diff)
Convert use of common_server_error and common_user_error to methods on Action
Diffstat (limited to 'actions/tagother.php')
-rw-r--r--actions/tagother.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/actions/tagother.php b/actions/tagother.php
index f0105ec8b..e11e3a00d 100644
--- a/actions/tagother.php
+++ b/actions/tagother.php
@@ -30,7 +30,7 @@ class TagotherAction extends Action
parent::handle($args);
if (!common_logged_in()) {
- $this->client_error(_('Not logged in'), 403);
+ $this->clientError(_('Not logged in'), 403);
return;
}
@@ -39,12 +39,12 @@ class TagotherAction extends Action
} else {
$id = $this->trimmed('id');
if (!$id) {
- $this->client_error(_('No id argument.'));
+ $this->clientError(_('No id argument.'));
return;
}
$profile = Profile::staticGet('id', $id);
if (!$profile) {
- $this->client_error(_('No profile with that ID.'));
+ $this->clientError(_('No profile with that ID.'));
return;
}
$this->show_form($profile);
@@ -121,7 +121,7 @@ class TagotherAction extends Action
$profile = Profile::staticGet('id', $id);
if (!$profile) {
- $this->client_error(_('No such profile.'));
+ $this->clientError(_('No such profile.'));
return;
}
@@ -147,14 +147,14 @@ class TagotherAction extends Action
!Subscription::pkeyGet(array('subscriber' => $profile->id,
'subscribed' => $user->id)))
{
- $this->client_error(_('You can only tag people you are subscribed to or who are subscribed to you.'));
+ $this->clientError(_('You can only tag people you are subscribed to or who are subscribed to you.'));
return;
}
$result = Profile_tag::setTags($user->id, $profile->id, $tags);
if (!$result) {
- $this->client_error(_('Could not save tags.'));
+ $this->clientError(_('Could not save tags.'));
return;
}