From 6d6fc1b13e194036389a6e8c54e1316a506a8c15 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 25 Jan 2012 16:19:56 -0600 Subject: [PATCH] fix bug in backreference. --- laravel/routing/controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/routing/controller.php b/laravel/routing/controller.php index 2d5b0a03..aa952501 100644 --- a/laravel/routing/controller.php +++ b/laravel/routing/controller.php @@ -89,7 +89,7 @@ protected static function backreference($method, $parameters) if ($count > 0) unset($parameters[$key]); } - return array(str_replace('$1', 'index', $method), $parameters); + return array(str_replace('(:1)', 'index', $method), $parameters); } /**