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
parent
bc66a00b90
commit
95b3bbbf7c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue