[Rt-commit] rt branch, 4.2/static-handler, updated. rt-4.0.0rc7-257-gd3e2087
? sunnavy
sunnavy at bestpractical.com
Mon May 16 04:09:16 EDT 2011
The branch, 4.2/static-handler has been updated
via d3e20872071f1915b92675a8f97fd5ebc6bf1828 (commit)
from 93a997d2d21419838a7dba9e547f9b40362fcf09 (commit)
Summary of changes:
lib/RT/Interface/Web/Handler.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit d3e20872071f1915b92675a8f97fd5ebc6bf1828
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon May 16 15:42:58 2011 +0800
make sure File::Spec is there
diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index 403abda..d48d660 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -281,7 +281,8 @@ sub PSGIApp {
my @system_static;
for my $plugin ( RT->Config->Get('Plugins') ) {
next unless $plugin;
- my $dir = catdir( RT::Plugin->new( name => $plugin )->StaticDir );
+ require File::Spec;
+ my $dir = File::Spec->catdir( 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