X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;fp=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=831f6e89b025ce672142f0bda1a91d33aaa8ce98;hp=b7332428c83c774626075af901f42a1aaa7f1f1f;hb=7a5049902b30035b0d5bbdc77b1600bc945590cf;hpb=173de3edebf45d0dd2b92258aef42eb9212a9014 diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index b733242..831f6e8 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -294,7 +294,13 @@ sub recurse_match { defined($args_attr) && ( $args_attr eq "0" && - ( exists($best_action->{args_attr}) && defined($best_action->{args_attr}) ? ($best_action->{args_attr} ne 0) : 1 ) + ( + ($c->config->{use_chained_args_0_special_case}||0) || + ( + exists($best_action->{args_attr}) && defined($best_action->{args_attr}) ? + ($best_action->{args_attr} ne 0) : 1 + ) + ) ) ) ){