[Rt-commit] rt branch, 4.2/static-handler, updated. rt-4.0.0rc7-260-g9f918ab

? sunnavy sunnavy at bestpractical.com
Mon May 16 11:35:20 EDT 2011


The branch, 4.2/static-handler has been updated
       via  9f918ab4d886b50e9eb64ced473d452a778ded72 (commit)
      from  1865dbad79f159441edb0fb1ec9c37fb92f741b5 (commit)

Summary of changes:
 lib/RT/Interface/Web/Handler.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 9f918ab4d886b50e9eb64ced473d452a778ded72
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon May 16 23:34:47 2011 +0800

    -d is better, we only want dir here

diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index c683e8d..4c2413c 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -282,9 +282,9 @@ sub PSGIApp {
     for my $plugin ( RT->Config->Get('Plugins') ) {
         next unless $plugin;
         my $dir = RT::Plugin->new( name => $plugin )->StaticDir;
-        push @system_static, $dir if -e $dir;
+        push @system_static, $dir if -d $dir;
     }
-    push @system_static, grep { -e } $RT::LocalStaticPath, $RT::StaticPath;
+    push @system_static, grep { -d } $RT::LocalStaticPath, $RT::StaticPath;
     for my $root (@system_static) {
         $builder->add_middleware(
             'Plack::Middleware::Static',

-----------------------------------------------------------------------


More information about the Rt-commit mailing list