Copypasta in commonpath calculation.

This commit is contained in:
Chris 2012-06-29 14:10:27 +01:00
parent 29a6507917
commit d7026e0464

View File

@ -404,7 +404,7 @@ sub set_template_dir {
# And the common path, if possible # And the common path, if possible
if($self -> {"fallback"}) { if($self -> {"fallback"}) {
$self -> {"commonpath"} = path_join($self -> {"scriptpath"}, $self -> {"basedir"}, $self -> {"fallback"}); $self -> {"commonpath"} = path_join($self -> {"scriptpath"}, $self -> {"basedir"}, $self -> {"fallback"});
$self -> {"commonpath"} .= "/" unless($self -> {"templatepath"} =~ m|/$|); # templatepath must have trailing slash $self -> {"commonpath"} .= "/" unless($self -> {"commonpath"} =~ m|/$|); # commonpath must have trailing slash
} else { } else {
$self -> {"commonpath"} = $self -> {"templatepath"}; $self -> {"commonpath"} = $self -> {"templatepath"};
} }