From: Simon Cozens Date: Sat, 31 Jan 2004 19:21:20 +0000 (+0000) Subject: Default to the frontpage template. X-Git-Tag: 2.10~321 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d4dc7a8a0ca5bf94fddf2653ed611eec11bb4c89;p=maypole.git Default to the frontpage template. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@41 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Apache/MVC.pm b/lib/Apache/MVC.pm index 910562c..4b1a600 100644 --- a/lib/Apache/MVC.pm +++ b/lib/Apache/MVC.pm @@ -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;