master
Joey Hess 2010-04-24 19:50:23 -04:00
parent 4321b30139
commit 0d8fc55d33
1 changed files with 1 additions and 1 deletions

View File

@ -1654,7 +1654,7 @@ sub saveindex () {
sub template_file ($) { sub template_file ($) {
my $name=shift; my $name=shift;
my $tpage=($name =~ /^\//) ? $name : "templates/$name"; my $tpage=($name =~ s/^\///) ? $name : "templates/$name";
if ($name !~ /\.tmpl$/ && exists $pagesources{$tpage}) { if ($name !~ /\.tmpl$/ && exists $pagesources{$tpage}) {
$tpage=$pagesources{$tpage}; $tpage=$pagesources{$tpage};
$name.=".tmpl"; $name.=".tmpl";