summaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-05 21:19:34 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-05 21:19:34 +0200
commit7c98fd91403e8217cefb80e60689d446fd7765b2 (patch)
tree2aa4b6202f7f3815294d2b312edd7af5363d2cd4 /index.cgi
parent8f6fa3462f91df986a84383afce9408561341d63 (diff)
Fix revert to enable headers. Skip headers when FORMBUILDER_NOHEADER in set.
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi11
1 files 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<P>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
);
}