diff options
author | terry%mozilla.org <> | 1999-09-28 04:25:16 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 1999-09-28 04:25:16 +0000 |
commit | 92cee2c383c4e44693b69ed45390af31b4aca09d (patch) | |
tree | 55c6c6b582bf444b94e601cb69cfe9fecd2013a4 /buglist.cgi | |
parent | 3ce4a388ef2109b31c933f8d66c61a668db0ecfa (diff) | |
download | bugs-92cee2c383c4e44693b69ed45390af31b4aca09d.tar bugs-92cee2c383c4e44693b69ed45390af31b4aca09d.tar.gz bugs-92cee2c383c4e44693b69ed45390af31b4aca09d.tar.bz2 bugs-92cee2c383c4e44693b69ed45390af31b4aca09d.tar.xz bugs-92cee2c383c4e44693b69ed45390af31b4aca09d.zip |
Patch by Markus Rex <msrex@suse.de> -- add a param to contorl whether to show quips.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/buglist.cgi b/buglist.cgi index 8d3182200..d780e2af2 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -568,16 +568,16 @@ my $buglist = join(":", @bugarray); # This is stupid. We really really need to move the quip list into the DB! my $quip; -if (open (COMMENTS, "<data/comments")) { +if (Param('usequip')){ + if (open (COMMENTS, "<data/comments")) { my @cdata; while (<COMMENTS>) { - push @cdata, $_; + push @cdata, $_; } close COMMENTS; $quip = $cdata[int(rand($#cdata + 1))]; -} -if (!defined $quip) { - $quip = "Bugzilla would like to put a random quip here, but nobody has entered any."; + } + $quip ||= "Bugzilla would like to put a random quip here, but nobody has entered any."; } @@ -612,7 +612,9 @@ if ($toolong) { print "Next/Prev/First/Last buttons won't appear.</h2>\n"; } -print "<HR><A HREF=newquip.html><I>$quip</I></A></CENTER>\n"; +if (Param('usequip')){ + print "<HR><A HREF=newquip.html><I>$quip</I></A></CENTER>\n"; +} print "<HR SIZE=10>$tablestart\n"; print $::bugl; print "</TABLE>\n"; |