[Rt-commit] rt branch, 4.2/static-handler, updated. rt-4.0.0rc7-258-g0dead4a
? sunnavy
sunnavy at bestpractical.com
Mon May 16 04:34:11 EDT 2011
The branch, 4.2/static-handler has been updated
via 0dead4a709dcde225cbee16a709bef308b1d1a10 (commit)
from d3e20872071f1915b92675a8f97fd5ebc6bf1828 (commit)
Summary of changes:
lib/RT/Interface/Web/Handler.pm | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 0dead4a709dcde225cbee16a709bef308b1d1a10
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon May 16 16:32:54 2011 +0800
no need catdir at all
diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index d48d660..e0c4a69 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -281,8 +281,7 @@ sub PSGIApp {
my @system_static;
for my $plugin ( RT->Config->Get('Plugins') ) {
next unless $plugin;
- require File::Spec;
- my $dir = File::Spec->catdir( RT::Plugin->new( name => $plugin )->StaticDir );
+ my $dir = RT::Plugin->new( name => $plugin )->StaticDir;
push @system_static, $dir if -e $dir;
}
push @system_static, $RT::LocalStaticPath, $RT::StaticPath;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list