summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-10-08 10:00:31 +0800
committerJeffery To <jeffery.to@gmail.com>2009-10-22 12:46:54 +0800
commitf58daa873befbaee5a998e69622c046c8a978dee (patch)
tree6ba7d0d8ae6c2ed63c8ae86b6dca9335a195b90b
parent8a31970ff8fe8a4e440501771756747370e2fa20 (diff)
Added getfile action
-rw-r--r--lib/router.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 5529e60ac..7455d9cf8 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -171,6 +171,10 @@ class Router
array('action' => 'attachment_thumbnail'),
array('attachment' => '[0-9]+'));
+ $m->connect('getfile/:filename',
+ array('action' => 'getfile'),
+ array('filename' => '[A-Za-z0-9._-]+'));
+
$m->connect('notice/new', array('action' => 'newnotice'));
$m->connect('notice/new?replyto=:replyto',
array('action' => 'newnotice'),