Finished off the last piece of legacy URL support.
Dan Brook [Mon, 29 Mar 2010 19:41:07 +0000 (20:41 +0100)]
lib/Gitalist/Controller/LegacyURI.pm

index dd0472b..a4c4420 100644 (file)
@@ -123,6 +123,8 @@ sub _legacy_uri {
 sub handler : Chained('/base') PathPart('legacy') Args() {
     my ( $self, $c, $repos ) = @_;
 
+    $repos ||= $c->req->param('p');
+
     my ($action, $captures, @args) = $self->_legacy_uri($c, $repos, $c->req->param('a'));
 
     die("Not supported")