From e4db6ab1b0cef6fbeaa2d334984ccb43e5d8ff85 Mon Sep 17 00:00:00 2001 From: "justdave%bugzilla.org" Date: Thu, 24 Aug 2006 02:33:34 +0000 Subject: [PATCH] Bug 349045: Allow config variables to be overridden in the Apache config so multiple installs can live in the same docroot r=gerv --- webtools/hendrix/index.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webtools/hendrix/index.cgi b/webtools/hendrix/index.cgi index 153a144e4f14..d97985642627 100755 --- a/webtools/hendrix/index.cgi +++ b/webtools/hendrix/index.cgi @@ -37,15 +37,16 @@ use Email::Send qw(NNTP); # use CGI::Carp qw(fatalsToBrowser); # Configuration -my $newsgroup = "mozilla.feedback"; -my $server = "news.mozilla.org"; +my $newsgroup = $::ENV{'HENDRIX_NEWSGROUP'} || "mozilla.feedback"; +my $server = $::ENV{'HENDRIX_NNTP_SERVER'} || "news.mozilla.org"; +my $skin = $::ENV{'HENDRIX_SKIN'} || "skin/planet.css"; my $cgi = new CGI; my $form = $cgi->Vars; my $vars; $vars->{'form'} = $form; $vars->{'newsgroup'} = $newsgroup; -$vars->{'stylesheet'} = "skin/planet.css"; +$vars->{'stylesheet'} = $skin; my $template = Template->new({ INCLUDE_PATH => ["template"],