mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-25 17:19:33 -05:00
Url: compatibility hack web2 v2.3.4 VS 2.4.0
This commit is contained in:
parent
2bf4b8df19
commit
657a103c96
1 changed files with 5 additions and 2 deletions
|
|
@ -59,8 +59,11 @@ class Url extends WebUrl
|
|||
|
||||
public function setBasePath($basePath)
|
||||
{
|
||||
$this->basePath = rtrim($basePath, '/ ');
|
||||
return $this;
|
||||
if (property_exists($this, 'basePath')) {
|
||||
parent::setBasePath($basePath);
|
||||
} else {
|
||||
return $this->setBaseUrl($basePath);
|
||||
}
|
||||
}
|
||||
|
||||
protected static function getRequest()
|
||||
|
|
|
|||
Loading…
Reference in a new issue