]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Changes to router setup to make notice search RSS feed work
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 19:05:50 +0000 (15:05 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 19:05:50 +0000 (15:05 -0400)
Conflicts:

lib/router.php

lib/router.php

index 135e07a0f0e3c13ab59a746b8447ed0ddd421255..77794aaf70e190b8a61c443b88287da22ae857b6 100644 (file)
@@ -136,10 +136,14 @@ class Router
 
         foreach (array('group', 'people', 'notice') as $s) {
             $m->connect('search/'.$s, array('action' => $s.'search'));
-            $m->connect('search/'.$s.'?q=:q', array('action' => $s.'search'), array('q' => '.+'));
+            $m->connect('search/'.$s.'?q=:q', array('action' => $s.'search'),array('q' => '.+'));
         }
 
+        // The second of these is needed to make the link work correctly
+        // when inserted into the page. The first is needed to match the
+        // route on the way in. Seems to be another Net_URL_Mapper bug to me.
         $m->connect('search/notice/rss', array('action' => 'noticesearchrss'));
+        $m->connect('search/notice/rss?q=:q', array('action' => 'noticesearchrss'),array('q' => '.+'));
 
         // notice