From 7c98fd91403e8217cefb80e60689d446fd7765b2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 5 Apr 2017 21:19:34 +0200 Subject: Fix revert to enable headers. Skip headers when FORMBUILDER_NOHEADER in set. --- index.cgi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/index.cgi b/index.cgi index 1e9acb8..41b8f11 100755 --- a/index.cgi +++ b/index.cgi @@ -105,20 +105,25 @@ if ($form->submitted) { $infostring .= "\n

The following info has been submitted:"; $form->{opt}{messages}{form_confirm_text} = "$infostring"; print $form->confirm( -# header => 1, + header => 1, template => $ack_path ); } else { print $form->render( -# header => 1, + header => 1, sticky => (! $form->validate), #FIXME text => $infostring, template => $req_path ); } +} elsif ($ENV{'FORMBUILDER_NOHEADER'}) { + print $form->render( + header => 0, + template => $req_path + ); } else { print $form->render( -# header => 1, + header => 1, template => $req_path ); } -- cgit v1.2.3