aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/template.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-27 15:18:36 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-27 15:18:36 -0400
commit55a0361a4768c445216d93314a707dcbd9bc98c7 (patch)
tree83465bc8582259901ce31c0b8fd4ca126e0af35e /IkiWiki/Plugin/template.pm
parent67f38832aac247620f29fc124cfce31dd616f119 (diff)
downloadikiwiki-55a0361a4768c445216d93314a707dcbd9bc98c7.tar
ikiwiki-55a0361a4768c445216d93314a707dcbd9bc98c7.tar.gz
template: Make edit link for new templates ensure the page is located under toplevel templates directory.
Diffstat (limited to 'IkiWiki/Plugin/template.pm')
-rw-r--r--IkiWiki/Plugin/template.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index a2859b2a9..c980df48f 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -33,7 +33,7 @@ sub preprocess (@) { #{{{
my $template_file=$pagesources{$template_page};
return sprintf(gettext("template %s not found"),
- htmllink($params{page}, $params{destpage}, $template_page))
+ htmllink($params{page}, $params{destpage}, "/".$template_page))
unless defined $template_file;
my $template;