fixed routing bug.
This commit is contained in:
parent
2275c74660
commit
2bb7125127
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue