Url: compatibility hack web2 v2.3.4 VS 2.4.0

This commit is contained in:
Thomas Gelf 2016-11-28 16:40:45 +01:00
parent 2bf4b8df19
commit 657a103c96

View file

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