fixed routing bug.

This commit is contained in:
Taylor Otwell 2011-07-31 17:24:43 -05:00
parent 2275c74660
commit 2bb7125127
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
* Laravel - A clean and classy framework for PHP web development. * Laravel - A clean and classy framework for PHP web development.
* *
* @package Laravel * @package Laravel
* @version 1.4.0 * @version 1.4.1
* @author Taylor Otwell * @author Taylor Otwell
* @link http://laravel.com * @link http://laravel.com
*/ */

View File

@ -24,6 +24,8 @@ public static function load($uri)
if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT)) if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT))
{ {
$routes = require $path; $routes = require $path;
break;
} }
} }