[Jifty-commit] r3417 - in jifty/trunk: . lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jun 9 17:23:55 EDT 2007
Author: jesse
Date: Sat Jun 9 17:23:55 2007
New Revision: 3417
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Manual/Cookbook.pod
jifty/trunk/lib/Jifty/Web.pm
Log:
r58190 at pinglin: jesse | 2007-06-09 16:08:50 -0400
* The cookbook was wrong about the auth recipe
Modified: jifty/trunk/lib/Jifty/Manual/Cookbook.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Cookbook.pod (original)
+++ jifty/trunk/lib/Jifty/Manual/Cookbook.pod Sat Jun 9 17:23:55 2007
@@ -177,7 +177,7 @@
before qr'^/secret' => run {
unless(Jifty->web->current_user->id) {
- Jifty->web->tangent('/login');
+ Jifty->web->tangent(url => '/login');
}
};
Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm (original)
+++ jifty/trunk/lib/Jifty/Web.pm Sat Jun 9 17:23:55 2007
@@ -824,6 +824,10 @@
sub tangent {
my $self = shift;
+ if (@_ == 1 ) {
+ Jifty->log->error("Jifty::Web->tangent takes a paramhash. Perhaps you passed '".$_[0]."' , rather than 'url => ".$_[0]."'");
+ die;
+ }
my $clickable = Jifty::Web::Form::Clickable->new(
returns => { },
preserve_state => 1,
More information about the Jifty-commit
mailing list