template: Make edit link for new templates ensure the page is located under toplevel templates directory.

master
Joey Hess 2008-09-27 15:18:36 -04:00
parent 67f38832aa
commit 55a0361a47
2 changed files with 3 additions and 1 deletions

View File

@ -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;

2
debian/changelog vendored
View File

@ -8,6 +8,8 @@ ikiwiki (2.66) UNRELEASED; urgency=low
* git: Fix handling of utf-8 filenames in recentchanges.
* tag: Make edit link for new tags ensure that the tags are created
inside tagbase, when it's set.
* template: Make edit link for new templates ensure the page is located
under toplevel templates directory.
* htmlscrubber: Add a config setting that can be used to disable the
scrubber acting on a set of pages.
* Expand usage message and add --help. Closes: #500344