]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patches by Ken Jenks <kjenks@abiblion.com> and jug@tellux.de -- make the Javascript...
authorterry%mozilla.org <>
Wed, 16 Feb 2000 02:56:31 +0000 (02:56 +0000)
committerterry%mozilla.org <>
Wed, 16 Feb 2000 02:56:31 +0000 (02:56 +0000)
CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 39cdbca1298e9b12ac9037882e4bd1dd05c63d4f..157f7a9fffacbcbb3ec30921501e4ecbd58158d4 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -734,7 +734,7 @@ name=PleaseMailAPassword>
 
 
 sub PutHeader {
-    my ($title, $h1, $h2, $extra, $ignoreshutdown) = (@_);
+    my ($title, $h1, $h2, $extra, $ignoreshutdown, $jscript) = (@_);
 
     if (!defined $h1) {
        $h1 = $title;
@@ -745,9 +745,10 @@ sub PutHeader {
     if (!defined $extra) {
        $extra = "";
     }
+    $jscript ||= "";
 
     print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
-    print Param("headerhtml") . "\n</HEAD>\n";
+    print Param("headerhtml") . "\n$jscript\n</HEAD>\n";
     print "<BODY   BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"\n";
     print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\" $extra>\n";