X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a6fc3b411f64f18cd2aabfcd2496b3f7e275e7ef..12eb585353660d121e48d5796d35354b66c7e522:/IkiWiki/Plugin/edittemplate.pm diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm index c381940e5..4d4117c15 100644 --- a/IkiWiki/Plugin/edittemplate.pm +++ b/IkiWiki/Plugin/edittemplate.pm @@ -62,7 +62,7 @@ sub preprocess (@) { #{{{ add_depends($params{page}, $link); my $linkHTML = htmllink($params{page}, $params{destpage}, $link); - return sprintf(gettext("edittemplate: %s registered for %s"), + return sprintf(gettext("edittemplate %s registered for %s"), $linkHTML, $params{match}); } # }}} @@ -93,11 +93,12 @@ sub formbuilder (@) { #{{{ if (exists $pagestate{$registering_page}{edittemplate}) { foreach my $pagespec (sort keys %{$pagestate{$registering_page}{edittemplate}}) { if (pagespec_match($p, $pagespec, location => $registering_page)) { + my $template=$pagestate{$registering_page}{edittemplate}{$pagespec}; $form->field(name => "editcontent", - value => filltemplate($pagestate{$registering_page}{edittemplate}{$pagespec}, $page)); + value => filltemplate($template, $page)); $form->field(name => "type", - value => pagetype($pagesources{$pagestate{$registering_page}{edittemplate}{$pagespec}})) - if $pagesources{$pagestate{$registering_page}{edittemplate}{$pagespec}}; + value => pagetype($pagesources{$template})) + if $pagesources{$template}; return; } }