Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed May 6, 2016
2 parents 3c6336b + 2c0bc31 commit 0cf60b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/View/Helper/LessHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ protected function assetBaseUrl($plugin, $asset)
$dir = dirname($asset);
$path = !empty($dir) && $dir != '.' ? "/$dir" : null;

return $this->Url->assetUrl($plugin . $path, [
'fullBase' => true
]);
return $this->Url->assetUrl($plugin . $path);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/View/Helper/LessHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,19 @@ public function testAssetBaseUrl()
'Less',
'less/styles.less'
]);
$this->assertEquals('http://localhost/Less/less', $result);
$this->assertEquals('/Less/less', $result);

$result = $assetBaseUrl->invokeArgs($this->Less, [
'Bootstrap',
'css/whatever.less'
]);
$this->assertEquals('http://localhost/Bootstrap/css', $result);
$this->assertEquals('/Bootstrap/css', $result);

$result = $assetBaseUrl->invokeArgs($this->Less, [
'Less',
'whatever.less'
]);
$this->assertEquals('http://localhost/Less', $result);
$this->assertEquals('/Less', $result);
}

protected static function getProtectedMethod($name)
Expand Down

0 comments on commit 0cf60b3

Please sign in to comment.