summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-09-19 13:38:11 +0200
committerterry%netscape.com <>1998-09-19 13:38:11 +0200
commit4702e74fc2407c7dc295c0475bdad32938397465 (patch)
treec099446f71603471ae1468ec1e7cc9bee8702b2f
parent7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b (diff)
downloadbugzilla-4702e74fc2407c7dc295c0475bdad32938397465.tar.gz
bugzilla-4702e74fc2407c7dc295c0475bdad32938397465.tar.xz
Add simple support for a version string.
-rw-r--r--CGI.pl2
-rw-r--r--defparams.pl4
-rw-r--r--globals.pl3
3 files changed, 7 insertions, 2 deletions
diff --git a/CGI.pl b/CGI.pl
index 0a2fc9723..356c579e5 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -403,7 +403,7 @@ sub PutHeader {
print "<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"\n";
print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\">\n";
- print Param("bannerhtml");
+ print PerformSubsts(Param("bannerhtml"), undef);
print "<TABLE BORDER=0 CELLPADDING=12 CELLSPACING=0 WIDTH=\"100%\">\n";
print " <TR>\n";
diff --git a/defparams.pl b/defparams.pl
index df5d88a85..f17f62475 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -133,7 +133,9 @@ sub check_despotbaseurl {
DefParam("bannerhtml",
- "The html that gets emitted at the head of every Bugzilla page.",
+ "The html that gets emitted at the head of every Bugzilla page.
+Anything of the form %<i>word</i>% gets replaced by the defintion of that
+word (as defined on this page).",
"l",
q{<TABLE BGCOLOR="#000000" WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR><TD><A HREF="http://www.mozilla.org/"><IMG
diff --git a/globals.pl b/globals.pl
index 2a33aa9c4..110015c01 100644
--- a/globals.pl
+++ b/globals.pl
@@ -26,6 +26,9 @@ use Mysql;
use Date::Format; # For time2str().
+# Contains the version string for the current running Bugzilla.
+$::param{'version'} = '1.1';
+
$::dontchange = "--do_not_change--";
$::chooseone = "--Choose_one:--";