summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-20 10:04:28 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-20 10:04:28 -0500
commit5ec5a22dc75cb8f4d896b41ca24067c68d3e1de6 (patch)
tree85523f3f95e3db2551953cd95996878dacfba3a2
parent673e7d2559dd0e0fe1405da60081946e6238251a (diff)
make tagother work with router
-rw-r--r--actions/tagother.php3
-rw-r--r--lib/router.php4
2 files changed, 5 insertions, 2 deletions
diff --git a/actions/tagother.php b/actions/tagother.php
index 79151c911..0d18945a0 100644
--- a/actions/tagother.php
+++ b/actions/tagother.php
@@ -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());
diff --git a/lib/router.php b/lib/router.php
index d47ad7118..e55b597f2 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -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) {