fix some stuff with tagother link

darcs-hash:20081121003338-84dde-45745ca353eb5a68627335115d2993fd15a38498.gz
This commit is contained in:
Evan Prodromou 2008-11-20 19:33:38 -05:00
parent d17d279872
commit 909b0d9311
2 changed files with 5 additions and 5 deletions

View File

@ -37,12 +37,12 @@ class TagotherAction extends Action {
} else { } else {
$id = $this->trimmed('id'); $id = $this->trimmed('id');
if (!$id) { if (!$id) {
$this->client_error(_('No profile to tag.')); $this->client_error(_('No id argument.'));
return; return;
} }
$profile = Profile::staticGet('id', $id); $profile = Profile::staticGet('id', $id);
if ($profile) { if (!$profile) {
$this->client_error(_('No profile to tag.')); $this->client_error(_('No profile with that ID.'));
return; return;
} }
$this->show_form($profile); $this->show_form($profile);

View File

@ -150,8 +150,8 @@ class ProfileList {
} }
common_element('a', array('href' => common_local_url('tagother', common_element('a', array('href' => common_local_url('tagother',
array('id' => $this->profile->id, array('id' => $this->profile->id)),
'class' => 'tagother'))), 'class' => 'tagother'),
_('Tag')); _('Tag'));
} }