summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-02-22 13:31:50 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-02-27 15:41:36 -0800
commitfa82722e5abd2e1cbf75050aea594f65a384d8d7 (patch)
treeb75745f4c75acf55f2e0525f8e2166b02298771c
parenta90a8da5c3c445b11e1e2bf0d0530eb48fa146c0 (diff)
More routes.
-rw-r--r--lib/router.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index e5b8e7d23..f70b67f38 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -133,6 +133,7 @@ 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/notice/rss', array('action' => 'noticesearchrss'));
@@ -140,6 +141,9 @@ class Router
// notice
$m->connect('notice/new', array('action' => 'newnotice'));
+ $m->connect('notice/new?replyto=:replyto',
+ array('action' => 'newnotice'),
+ array('replyto' => '[A-Za-z0-9_-]+'));
$m->connect('notice/:notice',
array('action' => 'shownotice'),
array('notice' => '[0-9]+'));