From 657a103c96a7724d9e313ce56e55cde2c3fc4b99 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Nov 2016 16:40:45 +0100 Subject: [PATCH] Url: compatibility hack web2 v2.3.4 VS 2.4.0 --- library/Businessprocess/Web/Url.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/Businessprocess/Web/Url.php b/library/Businessprocess/Web/Url.php index 01f2194..cdd5efb 100644 --- a/library/Businessprocess/Web/Url.php +++ b/library/Businessprocess/Web/Url.php @@ -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()