comments: run pagetemplate hooks

This fixes the bug that comments are always said to be from an anonymous
user at an unknown IP address.
master
Simon McVittie 2008-12-21 15:08:14 +00:00
parent bc66a00b90
commit 95b3bbbf7c
1 changed files with 6 additions and 0 deletions

View File

@ -447,6 +447,12 @@ sub sessioncgi ($$) {
$template->param(title => $form->field('subject')); $template->param(title => $form->field('subject'));
$template->param(ctime => displaytime(time)); $template->param(ctime => displaytime(time));
IkiWiki::run_hooks(pagetemplate => sub {
shift->(page => $location,
destpage => $page,
template => $template);
});
$form->tmpl_param(page_preview => $template->output); $form->tmpl_param(page_preview => $template->output);
} }
else { else {