diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-24 19:50:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-24 19:50:23 -0400 |
commit | 0d8fc55d3356ea7da2ce175d25230d207bd32088 (patch) | |
tree | 8592fe8f80623fe11a58fe5d013caf1fc7c27350 | |
parent | 4321b301398f6e5e034bfb7b1ab5a996d42ddbb5 (diff) | |
download | ikiwiki-0d8fc55d3356ea7da2ce175d25230d207bd32088.tar ikiwiki-0d8fc55d3356ea7da2ce175d25230d207bd32088.tar.gz |
bugfix
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index c218ed8ab..c2cadd35f 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1654,7 +1654,7 @@ sub saveindex () { sub template_file ($) { my $name=shift; - my $tpage=($name =~ /^\//) ? $name : "templates/$name"; + my $tpage=($name =~ s/^\///) ? $name : "templates/$name"; if ($name !~ /\.tmpl$/ && exists $pagesources{$tpage}) { $tpage=$pagesources{$tpage}; $name.=".tmpl"; |