]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add attachment action back into router
authorZach Copley <zach@controlyourself.ca>
Thu, 25 Jun 2009 21:05:06 +0000 (14:05 -0700)
committerZach Copley <zach@controlyourself.ca>
Thu, 25 Jun 2009 21:05:06 +0000 (14:05 -0700)
lib/router.php

index 1f39c60dc50207449c6ddba1a196560d0a1a390c..784ea988237dec40aacf38193335bafc100c1051 100644 (file)
@@ -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]+'));