]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make tagother work with router
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 15:04:28 +0000 (10:04 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 15:04:28 +0000 (10:04 -0500)
actions/tagother.php
lib/router.php

index 79151c91184a7c7e3642eefea49c48c2fe579c10..0d18945a09e88b2e8d2cc9b2704584cc93184be1 100644 (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());
index d47ad7118332328cfd0208f152013ea950ce6fed..e55b597f2142689eaa61e723ac68b051e1efdd91 100644 (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) {