fix some stuff with tagother link
darcs-hash:20081121003338-84dde-45745ca353eb5a68627335115d2993fd15a38498.gz
This commit is contained in:
parent
d17d279872
commit
909b0d9311
|
@ -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);
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user