[Jifty-commit] jifty branch, master, updated. 5dbd1eebff516b407fa6e7d56a8715ad0bf7cfcc
Jifty commits
jifty-commit at lists.jifty.org
Tue Jul 13 16:34:57 EDT 2010
The branch, master has been updated
via 5dbd1eebff516b407fa6e7d56a8715ad0bf7cfcc (commit)
from 1dd765f482c16da93abfe529b82c8797b46d44da (commit)
Summary of changes:
lib/Jifty/Handler.pm | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 5dbd1eebff516b407fa6e7d56a8715ad0bf7cfcc
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Jul 13 16:36:20 2010 -0400
Make sure the StaticRoot is an absolute path
diff --git a/lib/Jifty/Handler.pm b/lib/Jifty/Handler.pm
index 25bc953..449a8c1 100644
--- a/lib/Jifty/Handler.pm
+++ b/lib/Jifty/Handler.pm
@@ -137,8 +137,13 @@ sub psgi_app_static {
$static->add( $app_class->psgi_app_static )
if $app_class->can('psgi_app_static');
- $static->add( Plack::App::File->new
- ( root => Jifty->config->framework('Web')->{StaticRoot} )->to_app );
+ $static->add(
+ Plack::App::File->new(
+ root => Jifty::Util->absolute_path(
+ Jifty->config->framework('Web')->{StaticRoot}
+ )
+ )->to_app
+ );
for ( grep { defined $_ } map { $_->psgi_app_static } Jifty->plugins ) {
$static->add( $_ );
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list