diff options
author | Joey Hess <joey@kitenet.net> | 2007-12-12 03:01:15 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-12 03:15:30 -0500 |
commit | 4745391360cf0843e376676479fee306d0a8312d (patch) | |
tree | 55edb11f77b680c05f482151b44f4b6a0f2f1f56 /IkiWiki/CGI.pm | |
parent | c46b17983dc5549172dabb461b72a4ed11f110ae (diff) | |
download | ikiwiki-4745391360cf0843e376676479fee306d0a8312d.tar ikiwiki-4745391360cf0843e376676479fee306d0a8312d.tar.gz |
* Change formbuilder hook to not be responsible for displaying a form,
so that more than one plugin can use this hook.
I believe this is a safe change, since only passwordauth uses this hook.
(If some other plugin already used it, it would have broken passwordauth!)
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 75f096e13..567fa85be 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -33,10 +33,9 @@ sub showform ($$$$) { #{{{ buttons => $buttons); }); } - else { - printheader($session); - print misctemplate($form->title, $form->render(submit => $buttons)); - } + + printheader($session); + print misctemplate($form->title, $form->render(submit => $buttons)); } sub redirect ($$) { #{{{ |