Skip to content

Commit

Permalink
Merge pull request #31 from henkelund/2.0.2
Browse files Browse the repository at this point in the history
2.0.2
  • Loading branch information
henkelund authored May 6, 2018
2 parents 1685ec0 + 55fcb80 commit 22ab5c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand All @@ -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';
}

/**
Expand Down

0 comments on commit 22ab5c5

Please sign in to comment.