make tagother work with router

This commit is contained in:
Evan Prodromou 2009-02-20 10:04:28 -05:00
parent 673e7d2559
commit 5ec5a22dc7
2 changed files with 5 additions and 2 deletions

View File

@ -135,7 +135,8 @@ class TagotherAction extends Action
'id' => 'form_tag_user',
'class' => 'form_settings',
'name' => 'tagother',
'action' => $this->selfUrl()));
'action' => common_local_url('tagother', array('id' => $this->profile->id))));
$this->elementStart('fieldset');
$this->element('legend', null, _('Tag user'));
$this->hidden('token', common_session_token());

View File

@ -98,12 +98,14 @@ class Router
$main = array('login', 'logout', 'register', 'subscribe',
'unsubscribe', 'confirmaddress', 'recoverpassword',
'invite', 'favor', 'disfavor', 'sup',
'tagother', 'block');
'block');
foreach ($main as $a) {
$m->connect('main/'.$a, array('action' => $a));
}
$m->connect('main/tagother/:id', array('action' => 'tagother'));
// these take a code
foreach (array('register', 'confirmaddress', 'recoverpassword') as $c) {