refactoring the uri class.
This commit is contained in:
parent
bd6695844e
commit
bf50b67475
|
@ -34,14 +34,9 @@ public function __construct($server)
|
||||||
*/
|
*/
|
||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
if (is_null($this->uri))
|
if ( ! is_null($this->uri)) return $this->uri;
|
||||||
{
|
|
||||||
$uri = parse_url($this->server['REQUEST_URI'], PHP_URL_PATH);
|
|
||||||
|
|
||||||
$this->uri = $this->format($this->clean($uri));
|
return $this->uri = $this->format($this->clean(parse_url($this->server['REQUEST_URI'], PHP_URL_PATH)));
|
||||||
}
|
|
||||||
|
|
||||||
return $this->uri;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue