diff --git a/.travis.yml b/.travis.yml index c761997..9088111 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ php: - 7.1 - 7.0 env: + - M2_VERSION=2.2.4 - M2_VERSION=2.2.3 - M2_VERSION=2.2.2 - M2_VERSION=2.2.1 diff --git a/Helper/Data.php b/Helper/Data.php index 29f87cb..6c30440 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -142,11 +142,11 @@ public function getCdnBaseUrl($store = null, $secure = null) */ public function getJsScriptPath($store = null) { - return trim($this->scopeConfig->getValue( + return ltrim(trim($this->scopeConfig->getValue( self::XML_PATH_JS_SCRIPT_PATH, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store - ), ' /') ?: 'piwik.js'; + )), '/') ?: 'piwik.js'; } /** @@ -170,11 +170,11 @@ public function getJsScriptUrl($store = null, $secure = null) */ public function getPhpScriptPath($store = null) { - return trim($this->scopeConfig->getValue( + return ltrim(trim($this->scopeConfig->getValue( self::XML_PATH_PHP_SCRIPT_PATH, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store - ), ' /') ?: 'piwik.php'; + )), '/') ?: 'piwik.php'; } /**