]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 51270: param for bodyhtml to allow sites to customize
authordave%intrec.com <>
Sat, 16 Sep 2000 21:08:37 +0000 (21:08 +0000)
committerdave%intrec.com <>
Sat, 16 Sep 2000 21:08:37 +0000 (21:08 +0000)
background colors/image and link colors.

CGI.pl
defparams.pl

diff --git a/CGI.pl b/CGI.pl
index 21f5c8c77fb5e50c94141339c0e6645c51966e5c..a1ced72ea39a003519837967cfae4a223e0ae1c6 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -921,8 +921,7 @@ sub PutHeader {
 
     print "<HTML><HEAD>\n<TITLE>$title</TITLE>\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";
+    print "<BODY " . Param("bodyhtml") . " $extra>\n";
 
     print PerformSubsts(Param("bannerhtml"), undef);
 
index 3a767f84f3a44d7db79ac793fd7c9130e59d7858..7407b65c2ef43d9da1053273419acd8461fa2f02 100644 (file)
@@ -238,6 +238,11 @@ DefParam("headerhtml",
          "l",
          '');
 
+DefParam("bodyhtml",
+         "Additional parameters to add to the BODY tag at the beginning of documents, eg. background image/colors, link colors, etc",
+         "l",
+         'BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000"');
+
 DefParam("footerhtml",
          "HTML to add to the bottom of every page. By default it displays the blurbhtml, and %commandmenu%, a menu of useful commands.  You probably really want either headerhtml or footerhtml to include %commandmenu%.",
          "l",