[Jifty-commit] r2446 - in jifty/branches/template-declare: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Dec 30 23:35:52 EST 2006


Author: jesse
Date: Sat Dec 30 23:35:51 2006
New Revision: 2446

Modified:
   jifty/branches/template-declare/   (props changed)
   jifty/branches/template-declare/lib/Jifty/Dispatcher.pm

Log:
 r46618 at pinglin:  jesse | 2006-12-30 23:35:49 -0500
 * don't clobber request path


Modified: jifty/branches/template-declare/lib/Jifty/Dispatcher.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Dispatcher.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Dispatcher.pm	Sat Dec 30 23:35:51 2006
@@ -765,12 +765,10 @@
     my $abs_root_path = Jifty::Util->absolute_path( Jifty->config->framework('Web')->{'TemplateRoot'} );
 
     if ( $abs_template_path !~ /^\Q$abs_root_path\E/ ) {
-        request->path('/__jifty/errors/500');
+        $self->render_template('/__jifty/errors/500');
     } else {
-        # Set the request path
-        request->path($path);
+        $self->render_template( $path);
     }
-    $self->render_template( request->path );
 
     last_rule;
 }


More information about the Jifty-commit mailing list