Browse Source

Clean up route loader.

Taylor Otwell 13 years ago
parent
commit
05e365d0d5
1 changed files with 1 additions and 3 deletions
  1. 1 3
      laravel/routing/loader.php

+ 1 - 3
laravel/routing/loader.php

@@ -48,11 +48,9 @@ class Loader {
 	 */
 	public function load($uri)
 	{
-		$routes = (file_exists($path = $this->base.'routes'.EXT)) ? require $path : array();
-
 		$segments = Arr::without(explode('/', $uri), '');
 
-		return array_merge($this->nested($segments), $routes);
+		return array_merge($this->nested($segments), require $this->base.'routes'.EXT);
 	}
 
 	/**