[Rt-commit] rt branch, 4.2/static-handler,	updated. rt-4.1.5-96-g749529a
    ? sunnavy 
    sunnavy at bestpractical.com
       
    Thu Dec 20 00:22:00 EST 2012
    
    
  
The branch, 4.2/static-handler has been updated
       via  749529a7bea5568eb5476a66ac334011e739735c (commit)
      from  cf145cf40812c36b194bbe379d41a2038e694afe (commit)
Summary of changes:
 lib/RT/Interface/Web/Handler.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 749529a7bea5568eb5476a66ac334011e739735c
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Dec 20 13:21:26 2012 +0800
    use initialized plugin objects directly
diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index 847db71..3fafd1d 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -292,9 +292,9 @@ sub PSGIApp {
     }
 
     my @system_static;
-    for my $plugin ( RT->Config->Get('Plugins') ) {
-        next unless $plugin;
-        push @system_static, RT::Plugin->new( name => $plugin )->StaticDir;
+    for my $plugin ( @{RT->Plugins} ) {
+        my $dir = $plugin->StaticDir;
+        push @system_static, $dir if -d $dir;
     }
     push @system_static, $RT::LocalStaticPath, $RT::StaticPath;
     for my $root (grep {$_ and -d $_} @system_static) {
-----------------------------------------------------------------------
    
    
More information about the Rt-commit
mailing list