From 909b0d93111b9e6f1ccaf56075b8bbe433c482fb Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 20 Nov 2008 19:33:38 -0500 Subject: [PATCH] fix some stuff with tagother link darcs-hash:20081121003338-84dde-45745ca353eb5a68627335115d2993fd15a38498.gz --- actions/tagother.php | 6 +++--- lib/profilelist.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/actions/tagother.php b/actions/tagother.php index d4be3dd33b..a5129faee1 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 7fb0eb2d3c..6ecb9c9238 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')); } -- 2.39.5