summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ca686e9)
my $self = shift;
$self->{path} = $self->{ar}->uri;
my $loc = $self->{ar}->location;
my $self = shift;
$self->{path} = $self->{ar}->uri;
my $loc = $self->{ar}->location;
- $self->{path} =~ s/^$loc//; # I shouldn't need to do this?
+ no warnings 'uninitialized';
+ $self->{path} =~ s/^$loc?\///;
$self->{path} ||= "frontpage";
my @pi = split /\//, $self->{path};
shift @pi while @pi and !$pi[0];
$self->{path} ||= "frontpage";
my @pi = split /\//, $self->{path};
shift @pi while @pi and !$pi[0];