From 55a0361a4768c445216d93314a707dcbd9bc98c7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 27 Sep 2008 15:18:36 -0400 Subject: template: Make edit link for new templates ensure the page is located under toplevel templates directory. --- IkiWiki/Plugin/template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin/template.pm') 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; -- cgit v1.2.3