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

? sunnavy sunnavy at bestpractical.com
Mon May 16 04:48:49 EDT 2011


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

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

- Log -----------------------------------------------------------------
commit 1865dbad79f159441edb0fb1ec9c37fb92f741b5
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon May 16 16:38:12 2011 +0800

    LocalStaticPath may be empty

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

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


More information about the Rt-commit mailing list