Add attachment action back into router

This commit is contained in:
Zach Copley 2009-06-25 14:05:06 -07:00
parent 801aa9165e
commit 4662a4fa0d

View File

@ -152,6 +152,10 @@ class Router
$m->connect('search/notice/rss?q=:q', array('action' => 'noticesearchrss'), $m->connect('search/notice/rss?q=:q', array('action' => 'noticesearchrss'),
array('q' => '.+')); array('q' => '.+'));
$m->connect('attachment/:attachment',
array('action' => 'attachment'),
array('attachment' => '[0-9]+'));
$m->connect('attachment/:attachment/ajax', $m->connect('attachment/:attachment/ajax',
array('action' => 'attachment_ajax'), array('action' => 'attachment_ajax'),
array('attachment' => '[0-9]+')); array('attachment' => '[0-9]+'));