Merge branch 'develop'
This commit is contained in:
commit
65d38526ed
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 1.2.1
|
* @version 1.2.1
|
||||||
* @author Taylor Otwell
|
* @author Taylor Otwell1
|
||||||
* @license MIT License
|
* @license MIT License
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,7 +29,12 @@ public static function find($name)
|
||||||
// to all of the routes, not just the ones applicable to the request URI.
|
// to all of the routes, not just the ones applicable to the request URI.
|
||||||
if (is_null(static::$routes))
|
if (is_null(static::$routes))
|
||||||
{
|
{
|
||||||
static::$routes = (is_dir(APP_PATH.'routes')) ? static::load() : require APP_PATH.'routes'.EXT;
|
static::$routes = require APP_PATH.'routes'.EXT;
|
||||||
|
|
||||||
|
if (is_dir(APP_PATH.'routes'))
|
||||||
|
{
|
||||||
|
static::$routes = array_merge(static::load(), static::$routes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($name, static::$names))
|
if (array_key_exists($name, static::$names))
|
||||||
|
|
Loading…
Reference in New Issue