summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-06-25 14:05:06 -0700
committerZach Copley <zach@controlyourself.ca>2009-06-25 14:05:06 -0700
commit4662a4fa0dfe93d3819b9ffcae715fc465384a63 (patch)
tree2c0e4514c7d9c37adaedadb1067013e0fc78da13
parent801aa9165ec47c11c6f7c687d70f627bbd87f566 (diff)
Add attachment action back into router
-rw-r--r--lib/router.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 1f39c60dc..784ea9882 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -152,6 +152,10 @@ class Router
$m->connect('search/notice/rss?q=:q', array('action' => 'noticesearchrss'),
array('q' => '.+'));
+ $m->connect('attachment/:attachment',
+ array('action' => 'attachment'),
+ array('attachment' => '[0-9]+'));
+
$m->connect('attachment/:attachment/ajax',
array('action' => 'attachment_ajax'),
array('attachment' => '[0-9]+'));