bugfix
parent
4321b30139
commit
0d8fc55d33
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue