diff --git a/webtools/bugzilla/CGI.pl b/webtools/bugzilla/CGI.pl index 2cfe767ebe3..41f87589265 100644 --- a/webtools/bugzilla/CGI.pl +++ b/webtools/bugzilla/CGI.pl @@ -1166,8 +1166,19 @@ sub PutHeader { } +# Putfooter echoes footerhtml and by default prints closing tags +# +# param +# dontclose (boolean): avoid sending +# +# Example: +# Putfooter(); # normal close +# Putfooter(1); # don't send closing tags + sub PutFooter { + my ( $dontclose ) = @_; print PerformSubsts(Param("footerhtml")); + print "\n\n" if ( ! $dontclose ); SyncAnyPendingShadowChanges(); }