summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-15 15:04:58 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-15 15:04:58 -0400
commitfecb8c706dadb790c3a8c219275b4ba88e00b8ea (patch)
tree674650bcdc21627aedb97250426a554c85eca096 /lib/router.php
parent2e394ef47ce2f069e331c24586cda13bc34413aa (diff)
Attachments and their list now provide "ajax" view. Also added a few sidebars relating tags and attachments.
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 9308c818a..635e1d77e 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -151,12 +151,26 @@ class Router
$m->connect('search/notice/rss?q=:q', array('action' => 'noticesearchrss'),
array('q' => '.+'));
+ $m->connect('attachment/:attachment/ajax',
+ array('action' => 'attachment_ajax'),
+ array('notice' => '[0-9]+'));
+
+ $m->connect('attachment/:attachment',
+ array('action' => 'attachment'),
+ array('notice' => '[0-9]+'));
+
// 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/attachments/ajax',
+ array('action' => 'attachments_ajax'),
+ array('notice' => '[0-9]+'));
+ $m->connect('notice/:notice/attachments',
+ array('action' => 'attachments'),
+ array('notice' => '[0-9]+'));
$m->connect('notice/:notice',
array('action' => 'shownotice'),
array('notice' => '[0-9]+'));