refactoring the uri class.

This commit is contained in:
Taylor Otwell 2011-10-24 23:39:27 -05:00
parent bd6695844e
commit bf50b67475
1 changed files with 2 additions and 7 deletions

View File

@ -34,14 +34,9 @@ public function __construct($server)
*/
public function get()
{
if (is_null($this->uri))
{
$uri = parse_url($this->server['REQUEST_URI'], PHP_URL_PATH);
if ( ! is_null($this->uri)) return $this->uri;
$this->uri = $this->format($this->clean($uri));
}
return $this->uri;
return $this->uri = $this->format($this->clean(parse_url($this->server['REQUEST_URI'], PHP_URL_PATH)));
}
/**