From 2bf4b8df19b6aa6c98b4cb0bbaaa1c838842d552 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Nov 2016 16:17:31 +0100 Subject: [PATCH] Url: fix compatibility with older Icinga Web 2 --- library/Businessprocess/Web/Url.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Businessprocess/Web/Url.php b/library/Businessprocess/Web/Url.php index 4f508e6..01f2194 100644 --- a/library/Businessprocess/Web/Url.php +++ b/library/Businessprocess/Web/Url.php @@ -57,6 +57,12 @@ class Url extends WebUrl return $self; } + public function setBasePath($basePath) + { + $this->basePath = rtrim($basePath, '/ '); + return $this; + } + protected static function getRequest() { $app = Icinga::app();