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 {
|
} 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);
|
||||||
|
@ -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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user