[Rt-commit] r19819 - in rt/3.999/trunk/lib: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon Jun 1 14:50:46 EDT 2009
Author: sartak
Date: Mon Jun 1 14:50:46 2009
New Revision: 19819
Modified:
rt/3.999/trunk/lib/RT.pm
rt/3.999/trunk/lib/RT/Dispatcher.pm
Log:
Defer loading config until it's actually needed, since it lives in the db
Modified: rt/3.999/trunk/lib/RT.pm
==============================================================================
--- rt/3.999/trunk/lib/RT.pm (original)
+++ rt/3.999/trunk/lib/RT.pm Mon Jun 1 14:50:46 2009
@@ -125,7 +125,10 @@
sub config {
my $self = shift;
- return $RT::Config;
+ if (!$Config) {
+ RT->load_config;
+ }
+ return $Config;
}
=head2 init
Modified: rt/3.999/trunk/lib/RT/Dispatcher.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Dispatcher.pm (original)
+++ rt/3.999/trunk/lib/RT/Dispatcher.pm Mon Jun 1 14:50:46 2009
@@ -53,7 +53,6 @@
use Jifty::Dispatcher -base;
use RT;
-RT->load_config;
use RT::Interface::Web;
use RT::Interface::Web::Handler;
More information about the Rt-commit
mailing list