Updated extra_args to be unshifted instead of pushed
Sebastian Riedel [Fri, 11 Nov 2005 23:10:15 +0000 (23:10 +0000)]
lib/Catalyst/Dispatcher.pm

index c6eed9e..070f084 100644 (file)
@@ -113,7 +113,7 @@ sub forward {
                 if ($result) {
                     $local_args = 1;
                     $command    = $tail;
-                    push( @{$arguments}, @extra_args );
+                    unshift( @{$arguments}, @extra_args );
                     last DESCEND;
                 }
                 unshift( @extra_args, $tail );