]> git.decadent.org.uk Git - maypole.git/commitdiff
Default to the frontpage template.
authorSimon Cozens <simon@simon-cozens.org>
Sat, 31 Jan 2004 19:21:20 +0000 (19:21 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 31 Jan 2004 19:21:20 +0000 (19:21 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@41 48953598-375a-da11-a14b-00016c27c3ee

lib/Apache/MVC.pm

index 910562cee6043d84eaebe1dfd14ea4b09d35bfd0..4b1a60005750c186b7659cdefa224e01b72afee0 100644 (file)
@@ -101,6 +101,7 @@ sub parse_location {
     $self->{path} = $self->{ar}->uri;
     my $loc = $self->{ar}->location;
     $self->{path} =~ s/^$loc//; # I shouldn't need to do this?
+    $self->{path} ||= "frontpage";
     my @pi = split /\//, $self->{path};
     shift @pi while @pi and !$pi[0];
     $self->{table} = shift @pi;