Url: fix compatibility with older Icinga Web 2

This commit is contained in:
Thomas Gelf 2016-11-28 16:17:31 +01:00
parent f2cf04d247
commit 2bf4b8df19

View file

@ -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();