projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
template: Make edit link for new templates ensure the page is located under toplevel...
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
template.pm
diff --git
a/IkiWiki/Plugin/template.pm
b/IkiWiki/Plugin/template.pm
index a2859b2a99864ddb0e9d33cea8106b46ffbc8775..c980df48f4a48dfa8100fefa341740a2028244eb 100644
(file)
--- 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"),
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;
unless defined $template_file;
my $template;