[icinga-checkins] icinga.org: icingaweb2/master: Url: Add basePath to baseUrl in method getBaseUrl

git at icinga.org git at icinga.org
Thu Oct 20 09:31:15 CEST 2016


Module: icingaweb2
Branch: master
Commit: 2fd1a957a8fb29f85462b0ed901893bf01b6aaef
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=2fd1a957a8fb29f85462b0ed901893bf01b6aaef

Author: Noah Hilverling <noah.hilverling at netways.de>
Date:   Wed Oct 19 09:40:08 2016 +0200

Url: Add basePath to baseUrl in method getBaseUrl

refs #12133

---

 library/Icinga/Web/Url.php |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php
index 143b8cf..3f70bd3 100644
--- a/library/Icinga/Web/Url.php
+++ b/library/Icinga/Web/Url.php
@@ -428,6 +428,9 @@ class Url
         if ($this->getPort()) {
             $urlString .= ':' . $this->getPort();
         }
+        if ($this->getBasePath()) {
+            $urlString .= $this->getBasePath();
+        }
 
         return $urlString;
     }



More information about the icinga-checkins mailing list