[Jifty-commit] jifty branch, master, updated. f28d69c9c72025825a2d27813bf3fbd2fe58a1de

Jifty commits jifty-commit at lists.jifty.org
Thu Apr 8 19:25:50 EDT 2010


The branch, master has been updated
       via  f28d69c9c72025825a2d27813bf3fbd2fe58a1de (commit)
      from  5ab8de1e66d832aa0a3c39d469abc319d223b912 (commit)

Summary of changes:
 lib/Jifty/Plugin.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit f28d69c9c72025825a2d27813bf3fbd2fe58a1de
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Apr 8 19:25:34 2010 -0400

    Avoid undef warnings when a plugin has no static_root

diff --git a/lib/Jifty/Plugin.pm b/lib/Jifty/Plugin.pm
index cb0b7d1..4bf80e3 100644
--- a/lib/Jifty/Plugin.pm
+++ b/lib/Jifty/Plugin.pm
@@ -310,7 +310,7 @@ plugin's C<static_root>
 sub psgi_app_static {
     my $self = shift;
     my $static_root = $self->static_root;
-    return unless -d $static_root && -r $static_root;
+    return unless defined $static_root && -d $static_root && -r $static_root;
     Plack::App::File->new(root => $static_root)->to_app
 }
 

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


More information about the Jifty-commit mailing list