[rt-devel] RT 2.1.75 - etc/RT_SiteConfig.pm

Matt Knopp mhat at netlag.com
Wed Feb 19 23:39:15 EST 2003


Agreed RT_SiteConfig doesn't behave the way you would expect. Anytime you 
set a SiteConfig variable you must make sure that you also copy over all
the instances where that variable is used from the RT_Config.  

A solution would be for RT_Config and RT_SiteConfig to have their own perl
package names, then in RT_Config any where a variable is defined check to 
see if the RT_SiteConfig::Variable is set.  

Ie: 
package RT_Config; 
use RT_SiteConfig; 
my $Foo = $RT_SiteConfig::Foo || "DefaultFoo"; 

--
Matt



More information about the Rt-devel mailing list