Browse Source

Merge pull request #155 from sparksp/develop/fix-uri

[develop] Fix URI class
Taylor Otwell 13 years ago
parent
commit
bdbdd05b6a
2 changed files with 2 additions and 1 deletions
  1. 1 1
      laravel/request.php
  2. 1 0
      laravel/uri.php

+ 1 - 1
laravel/request.php

@@ -34,7 +34,7 @@ class Request {
 	 */
 	public static function uri()
 	{
-		return URI::get();
+		return URI::current();
 	}
 
 	/**

+ 1 - 0
laravel/uri.php

@@ -86,6 +86,7 @@ class URI {
 		{
 			return substr($uri, strlen($value));
 		}
+		return $uri;
 	}
 
 	/**