Url: Add use of method setBasePath in method setBaseUrl

refs #12133
This commit is contained in:
Noah Hilverling 2016-10-18 16:15:14 +02:00
parent 08719b0522
commit 9fcc39e0ba
1 changed files with 9 additions and 6 deletions

View File

@ -385,14 +385,17 @@ class Url
if (isset($urlParts["port"])) { if (isset($urlParts["port"])) {
$this->setPort($urlParts["port"]); $this->setPort($urlParts["port"]);
} }
if (isset($urlParts["scheme"])) { if (isset($urlParts['scheme'])) {
$this->setScheme($urlParts["scheme"]); $this->setScheme($urlParts['scheme']);
} }
if (isset($urlParts["user"])) { if (isset($urlParts['user'])) {
$this->setUsername($urlParts["user"]); $this->setUsername($urlParts['user']);
} }
if (isset($urlParts["pass"])) { if (isset($urlParts['pass'])) {
$this->setPassword($urlParts["pass"]); $this->setPassword($urlParts['pass']);
}
if (isset($urlParts['path'])) {
$this->setBasePath($urlParts['path']);
} }
return $this; return $this;