refactoring the uri class.
This commit is contained in:
parent
bd6695844e
commit
bf50b67475
|
@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue