summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-24 19:50:23 -0400
committerJoey Hess <joey@kitenet.net>2010-04-24 19:50:23 -0400
commit0d8fc55d3356ea7da2ce175d25230d207bd32088 (patch)
tree8592fe8f80623fe11a58fe5d013caf1fc7c27350
parent4321b301398f6e5e034bfb7b1ab5a996d42ddbb5 (diff)
bugfix
-rw-r--r--IkiWiki.pm2
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";