[Rt-commit] r7142 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
clkao at bestpractical.com
clkao at bestpractical.com
Mon Mar 5 06:35:36 EST 2007
Author: clkao
Date: Mon Mar 5 06:35:35 2007
New Revision: 7142
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm
Log:
Load user-defined site_config if RT_SITE_CONFIG is defined.
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm Mon Mar 5 06:35:35 2007
@@ -188,7 +188,12 @@
my $self = shift;
my %args = (File => '', @_);
$args{'File'} =~ s/(?<!Site)(?=Config\.pm$)/Site/;
- $self->_LoadConfig( %args );
+ if (my $site_config = $ENV{RT_SITE_CONFIG}) {
+ $self->_LoadConfig( %args, File => $site_config );
+ }
+ else {
+ $self->_LoadConfig( %args );
+ }
$args{'File'} =~ s/Site(?=Config\.pm$)//;
$self->_LoadConfig( %args );
return 1;
More information about the Rt-commit
mailing list