From 0d8fc55d3356ea7da2ce175d25230d207bd32088 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 24 Apr 2010 19:50:23 -0400 Subject: [PATCH] bugfix --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5