[Rt-commit] r14930 - in rt/3.8/trunk: lib
falcone at bestpractical.com
falcone at bestpractical.com
Fri Aug 8 16:22:08 EDT 2008
Author: falcone
Date: Fri Aug 8 16:21:59 2008
New Revision: 14930
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT.pm.in
Log:
r38008 at ketch: falcone | 2008-08-08 16:21:53 -0400
* This can be reached twice in standalone_httpd and rt-server
Avoid adding the plugin paths to INC twice
Modified: rt/3.8/trunk/lib/RT.pm.in
==============================================================================
--- rt/3.8/trunk/lib/RT.pm.in (original)
+++ rt/3.8/trunk/lib/RT.pm.in Fri Aug 8 16:21:59 2008
@@ -593,9 +593,13 @@
=cut
+{
+my $PluginPathsInited = 0;
sub InitPluginPaths {
my $self = shift || __PACKAGE__;
+ return @INC if $PluginPathsInited;
+
my @lib_dirs = $self->PluginDirs('lib');
my @tmp_inc;
@@ -606,8 +610,10 @@
push @tmp_inc, $_;
}
}
+ $PluginPathsInited = 1;
@INC = @tmp_inc;
}
+}
=head2 InitPlugins
More information about the Rt-commit
mailing list