summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 19:33:38 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 19:33:38 -0500
commit909b0d93111b9e6f1ccaf56075b8bbe433c482fb (patch)
treef1f85ee5dcd9912e093a3a2bcf288181ccbe64f5
parentd17d2798725909108f8fe11eb9574ceb6c912907 (diff)
fix some stuff with tagother link
darcs-hash:20081121003338-84dde-45745ca353eb5a68627335115d2993fd15a38498.gz
-rw-r--r--actions/tagother.php6
-rw-r--r--lib/profilelist.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/actions/tagother.php b/actions/tagother.php
index d4be3dd33..a5129faee 100644
--- a/actions/tagother.php
+++ b/actions/tagother.php
@@ -37,12 +37,12 @@ class TagotherAction extends Action {
} else {
$id = $this->trimmed('id');
if (!$id) {
- $this->client_error(_('No profile to tag.'));
+ $this->client_error(_('No id argument.'));
return;
}
$profile = Profile::staticGet('id', $id);
- if ($profile) {
- $this->client_error(_('No profile to tag.'));
+ if (!$profile) {
+ $this->client_error(_('No profile with that ID.'));
return;
}
$this->show_form($profile);
diff --git a/lib/profilelist.php b/lib/profilelist.php
index 7fb0eb2d3..6ecb9c923 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -150,8 +150,8 @@ class ProfileList {
}
common_element('a', array('href' => common_local_url('tagother',
- array('id' => $this->profile->id,
- 'class' => 'tagother'))),
+ array('id' => $this->profile->id)),
+ 'class' => 'tagother'),
_('Tag'));
}