summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-24 04:43:34 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-24 04:43:34 -0400
commitb5ac6e31f2f148164860aeabec6899b75d7292ec (patch)
tree5016a9624a923793f231d066d7519e8e3a0a8075 /lib/router.php
parent456f3eeb50fc1cafaa66ab5c0bdcdcaa5ca4bcd0 (diff)
Rearranged attachment info to only appear on each applicable notice page and thru an ajax popup.
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/router.php b/lib/router.php
index 70ee0f3fb..39c005609 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -151,26 +151,35 @@ class Router
$m->connect('search/notice/rss?q=:q', array('action' => 'noticesearchrss'),
array('q' => '.+'));
+/*
+ $m->connect('attachment/ajax_by_url/*url',
+ array('action' => 'attachment_ajax'));
+*/
$m->connect('attachment/:attachment/ajax',
array('action' => 'attachment_ajax'),
- array('notice' => '[0-9]+'));
+ array('attachment' => '[0-9]+'));
+/*
+ TODO
+ not used right now, will revisit later
$m->connect('attachment/:attachment',
array('action' => 'attachment'),
- array('notice' => '[0-9]+'));
-
+ array('attachment' => '[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]+'));