Bug 349045: Allow config variables to be overridden in the Apache config so multiple installs can live in the same docroot

r=gerv
This commit is contained in:
justdave%bugzilla.org 2006-08-24 02:33:34 +00:00
parent 0adb521b8c
commit e4db6ab1b0

View File

@ -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"],