[Jifty-commit] r7504 - jifty/trunk/lib/Jifty/Web

Jifty commits jifty-commit at lists.jifty.org
Thu Oct 1 16:18:51 EDT 2009


Author: sartak
Date: Thu Oct  1 16:18:50 2009
New Revision: 7504

Modified:
   jifty/trunk/lib/Jifty/Web/Form.pm

Log:
Warn about next_page 'url'

Modified: jifty/trunk/lib/Jifty/Web/Form.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form.pm	Thu Oct  1 16:18:50 2009
@@ -374,6 +374,9 @@
 
 sub next_page {
     my $self = shift;
+    if (@_ % 2) {
+        Carp::carp("next_page accepts a parameter hash. You probably want to specify url => ...");
+    }
 
     $self->add_action(class => "Jifty::Action::Redirect", moniker => "next_page", arguments => {@_});
     return '';


More information about the Jifty-commit mailing list